[jboss-cvs] JBossAS SVN: r63563 - projects/microcontainer/trunk/docs/examples.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Jun 18 14:11:34 EDT 2007


Author: alesj
Date: 2007-06-18 14:11:34 -0400 (Mon, 18 Jun 2007)
New Revision: 63563

Added:
   projects/microcontainer/trunk/docs/examples/log4j.properties
Modified:
   projects/microcontainer/trunk/docs/examples/build-common.xml
Log:
Standalone run + log4j.

Modified: projects/microcontainer/trunk/docs/examples/build-common.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/build-common.xml	2007-06-18 16:37:57 UTC (rev 63562)
+++ projects/microcontainer/trunk/docs/examples/build-common.xml	2007-06-18 18:11:34 UTC (rev 63563)
@@ -9,114 +9,134 @@
 =========================================================================== -->
 <project name="build-common" default="usage">
 
-<property name="examples.home" value=".."/>
-<property file="${examples.home}/build.properties"/>
-<property file="$(user.home}/build.properties"/>
+   <property name="examples.home" value=".."/>
+   <property file="${examples.home}/build.properties"/>
+   <property file="$(user.home}/build.properties"/>
 
-<!-- ==========================================================================
-Classpath
-=========================================================================== -->
-<path id="compile.classpath">
+   <!-- ==========================================================================
+  Classpath
+  =========================================================================== -->
+   <path id="compile.classpath">
 
-   <pathelement location="build"/>
-   <fileset dir="${jboss.home}/lib">
-      <include name="*.jar"/>
-   </fileset>
+      <pathelement location="build"/>
+      <fileset dir="${jboss.home}/lib">
+         <include name="*.jar"/>
+      </fileset>
 
-</path>
+   </path>
 
-<path id="run.classpath">
+   <path id="run.classpath">
 
-   <fileset dir="dist">
-       <include name="*.jar"/>
-   </fileset>
-   <fileset dir="${jboss.home}/lib">
-       <include name="*.jar"/>
-   </fileset>
+      <fileset dir="dist">
+         <include name="*.jar"/>
+      </fileset>
+      <fileset dir="${jboss.home}/lib">
+         <include name="*.jar"/>
+      </fileset>
+      <fileset dir="${jboss.home}/lib/endorsed">
+         <include name="*.jar"/>
+      </fileset>
 
-</path>
+   </path>
 
-<!-- ==========================================================================
-Compile the source
-=========================================================================== -->
-<target name="compile">
+   <!-- ==========================================================================
+  Compile the source
+  =========================================================================== -->
+   <target name="compile">
 
-   <mkdir dir="build"/>
+      <mkdir dir="build"/>
 
-   <javac destdir="build"
-          debug="on"
-          deprecation="on"
-          optimize="on"
-          classpathref="compile.classpath">
-      <src path="src"/>
-   </javac>
+      <javac destdir="build"
+             debug="on"
+             deprecation="on"
+             optimize="on"
+             classpathref="compile.classpath">
+         <src path="src"/>
+      </javac>
 
-</target>
+   </target>
 
-<!-- ==========================================================================
-Do the packaging
-=========================================================================== -->
-<target name="dist" depends="compile">
+   <!-- ==========================================================================
+  Do the packaging
+  =========================================================================== -->
+   <target name="dist" depends="compile">
 
-   <copy todir="build">
-      <fileset dir="src/resources"/>
-   </copy>
+      <copy todir="build">
+         <fileset dir="src/resources"/>
+      </copy>
 
-   <mkdir dir="dist"/>
+      <mkdir dir="dist"/>
 
-   <jar jarfile="dist/${ant.project.name}.jar" basedir="build"/>
+      <jar jarfile="dist/${ant.project.name}.jar" basedir="build"/>
 
-</target>
+   </target>
 
-<!-- ==========================================================================
-Deploy the package(s)
-=========================================================================== -->
-<target name="deploy" depends="dist">
+   <!-- ==========================================================================
+  Do the packaging
+  =========================================================================== -->
+   <target name="standalone.dist" depends="compile">
 
-   <copy todir="${jboss.home}/server/${jboss.config}/deploy">
-      <fileset dir="dist"/>
-   </copy>
+      <copy todir="build">
+         <fileset dir="src/resources"/>
+         <fileset file="../log4j.properties"/>
+      </copy>
 
-</target>
+      <mkdir dir="dist"/>
 
+      <jar jarfile="dist/${ant.project.name}.jar" basedir="build"/>
 
-<!-- ==========================================================================
-Undeploy the package(s)
-=========================================================================== -->
-<target name="undeploy">
+   </target>
 
-   <delete file="${jboss.home}/server/${jboss.config}/deploy/${ant.project.name}.jar"/>
+   <!-- ==========================================================================
+  Deploy the package(s)
+  =========================================================================== -->
+   <target name="deploy" depends="dist">
 
-</target>
+      <copy todir="${jboss.home}/server/${jboss.config}/deploy">
+         <fileset dir="dist"/>
+      </copy>
 
-<!-- ==========================================================================
-Run standalone 
-=========================================================================== -->
-<target name="run" depends="dist">
+   </target>
 
-   <java classname="org.jboss.kernel.plugins.bootstrap.standalone.StandaloneBootstrap" fork="true">
-     <classpath refid="run.classpath"/>
-  </java>
 
-</target>
+   <!-- ==========================================================================
+  Undeploy the package(s)
+  =========================================================================== -->
+   <target name="undeploy">
 
-<!-- ==========================================================================
-Cleans the build environment
-=========================================================================== -->
-<target name="clean" depends="undeploy">
+      <delete file="${jboss.home}/server/${jboss.config}/deploy/${ant.project.name}.jar"/>
 
-   <delete dir="dist"/>
-   <delete dir="build"/>
+   </target>
 
-</target>
+   <!-- ==========================================================================
+  Run standalone
+  =========================================================================== -->
+   <target name="run" depends="standalone.dist">
 
-<!-- ==========================================================================
-Usage
-=========================================================================== -->
-<target name="usage">
+      <java classname="org.jboss.kernel.plugins.bootstrap.standalone.StandaloneBootstrap" fork="true">
+         <classpath refid="run.classpath"/>
+      </java>
 
-   <echo>This is a utility build file used by the other examples</echo>
-   <echo>cd into a subdirectory to run a specific example</echo>
-</target>
+   </target>
 
+   <!-- ==========================================================================
+  Cleans the build environment
+  =========================================================================== -->
+   <target name="clean" depends="undeploy">
+
+      <delete dir="dist"/>
+      <delete dir="build"/>
+
+   </target>
+
+   <!-- ==========================================================================
+  Usage
+  =========================================================================== -->
+   <target name="usage">
+
+      <echo>This is a utility build file used by the other examples</echo>
+      <echo>cd into a subdirectory to run a specific example</echo>
+
+   </target>
+
 </project>

Added: projects/microcontainer/trunk/docs/examples/log4j.properties
===================================================================
--- projects/microcontainer/trunk/docs/examples/log4j.properties	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/log4j.properties	2007-06-18 18:11:34 UTC (rev 63563)
@@ -0,0 +1,6 @@
+log4j.rootLogger=DEBUG, stdout
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+# Pattern to output the caller's file name and line number.
+log4j.appender.stdout.layout.ConversionPattern=MC Examples %5p [%d{dd-MM-yyyy HH:mm:ss}] %c{1} - %m%n




More information about the jboss-cvs-commits mailing list