Recent Notes

Search results 1 - 6 for xinotes
Created by Fang on September 07, 2009 20:44:15    Last update: September 30, 2009 03:04:08
Step 1: Repackage a web app as EAR A Java EE application is a multimodule Maven project. At the very least you'll need to package a WAR and an EAR. To get started, I'll simply re-package the simple webapp as an EAR. Create a directory named javaee-app Copy the webapp from here to javaee-app . Rename struts1app to webapp . Create pom.xml under javaee-app : <project> <modelVersion>4.0.0</modelVersion> <groupId>maven-tutorial</groupId> <version>1.0</version> <artifactId>java-ee</artifactId> <packaging>pom</packaging> <name>Java EE Example</name> <modules> <module>ear</module> <module>webapp</module> </modules> </project> Create a directory named ear under javaee-app . Create pom.xml under ear : <project> <modelVersion>4.0.0</modelVersion> <groupId>maven-tutorial.java-ee</groupId> <artifactId>ear</artifactId> <packaging>ear</packaging> <version>1.0</version> <name>Java EE EAR Example</name> <parent> <groupId>maven-tutorial</groupId> <artifactId>java-ee</artifactId> <version>1.0</version> </parent> <dependencies> <dependency> <groupId>maven-tutorial.java-ee</groupId> <artifactId>webapp</artifactId> <version>1.0</version> <type>war</type> </dependency> </dependencies> </project> Modify pom.xml in the webapp directory so that it ...
Created by Fang on September 07, 2009 16:39:37    Last update: September 07, 2009 18:43:04
It's easiest to use the archetype plugin to start a new Maven project. I'll use struts 1 as example since it's not in the built-in archetypes for archetype:generate . Generate a simple webapp with archetype:generate : C:\work\maven>mvn archetype:generate -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=maven-tutorial -DartifactId=struts1app [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Default Project [INFO] task-segment: [archetype:generate] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] Preparing archetype:generate [INFO] No goals needed for project - skipping [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [archetype:generate {execution: default-cli}] [INFO] Generating project in Interactive mode Define value for version: 1.0-SNAPSHOT: : Confirm properties configuration: groupId: maven-tutorial artifactId: struts1app version: ...
Created by Dr. Xi on September 02, 2008 18:55:18    Last update: January 18, 2010 22:36:24
Remember the times when you googled for solutions to your technical problems? How much time did you spend on wading through the zillions of links to find the ones that are of interest to you? Wouldn't you hope that you can find the answer right away the second time around? How many times were you forced to peruse hundreds of pages of documentation for a very specific need? Did you ever need to experiment with various alternatives because the documentation was vague? Wouldn't you prefer that a shortcut is available when the same thing is needed again? Xinotes is here to record your technical findings so that you won't have to go through the same process again when the problem reappears. Experience has taught us ...
Created by Dr. Xi on August 10, 2007 03:11:34
There are two ways to enter BBCode in XiNotes: enclose it in a [code] block, or use double brackets to escape BBcode inline. This is BBcode in a code block: [b] BBCode shown as is, not bold faced [/b] [i] not Italian [/i] If you have to use BBCode inline, use double brackets, like this [ [b] ].
Created by Dr. Xi on August 10, 2007 03:01:46
It's actually quite easy to create tables in XiNotes. The syntax is almost the same as standard HTML, except that you use [table] , [tr] , [td] instead of <table>, <tr> and <td>. For example, the following table: Header 1 Header 2 Cell 11 Cell 12 Cell 21 Cell 22 is created with: [table] [tr] [th] Header 1 [/th] [th] Header 2 [/th] [/tr] [tr] [td] Cell 11 [/td] [td] Cell 12 [/td] [/tr] [tr] [td] Cell 21 [/td] [td] Cell 22 [/td] [/tr] [/table]
Created by Dr. Xi on April 22, 2007 21:58:45    Last update: January 19, 2009 20:26:12
Your code will be syntax highlighted when you specify the language of your code with the BBcode code tag: [code=lang] Your code here [/code] where "lang" is the language of your code. For example, the following Perl code #!/usr/bin/perl print "Hello World!\n"; is rendered with: [code=perl] #!/usr/bin/perl print "Hello World!\n"; [/code] The following are supported languages and their corresponding names for BBcode: Apache conf: apacheconf, aconf, apache Bash, sh: bash, sh C: c C++: cpp, c++ C#: csharp, c# Cascading Style Sheets (CSS): css Delphi, Pascal, Object Pascal: delphi, pas, pascal, objectpascal Diff file: diff DOS/Windows batch: bat Haskell: haskell HTML: html INI file: ini, cfg Java: java JavaScript: js, javascript JSP: jsp Makefile: make, makefile, mf Objective C: objective-c, objectivec, obj-c, objc Perl: perl, ...