logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carn...@apache.org
Subject svn commit: r530902 - /logging/sandbox/log4j/component/build.xml
Date Fri, 20 Apr 2007 20:03:49 GMT
Author: carnold
Date: Fri Apr 20 13:03:48 2007
New Revision: 530902

URL: http://svn.apache.org/viewvc?view=rev&rev=530902
Log:
Bug 42094: Fix bad line endings, other Ant mods

Modified:
    logging/sandbox/log4j/component/build.xml

Modified: logging/sandbox/log4j/component/build.xml
URL: http://svn.apache.org/viewvc/logging/sandbox/log4j/component/build.xml?view=diff&rev=530902&r1=530901&r2=530902
==============================================================================
--- logging/sandbox/log4j/component/build.xml (original)
+++ logging/sandbox/log4j/component/build.xml Fri Apr 20 13:03:48 2007
@@ -1 +1,123 @@
-<!--
 Licensed to the Apache Software Foundation (ASF) under one or more
 contributor
license agreements.  See the NOTICE file distributed with
 this work for additional information
regarding copyright ownership.
 The ASF licenses this file to You under the Apache License,
Version 2.0
 (the "License"); you may not use this file except in compliance with
 the License.
 You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
 distributed under the
License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied.
 See the License for the specific language governing permissions
and
 limitations under the License.

-->

<!--

This is a minimal build file to support
Gump.
Use of Maven to build this component is recommended.

-->
<project default="test">
   <property name="project.name" value="apache-log4j-component"/>
    <pro
 perty name="project.title" value="Component"/>
    <property name="project.version"
value="0.1-SNAPSHOT"/>
    <property name="project.jar" value="${project.name}-${project.version}.jar"/>
   
    <!--  All dependencies are expected to have been already
           downloaded
by Maven to the local Maven Repository   -->
    <property name="m2_repo" location="${user.home}/.m2/repository"/>
   <property name="log4j.version" value="1.2.14"/>
    <property name="junit.version"
value="3.8.1"/>
    <property name="junit.jar" 
       location="${m2_repo}/junit/junit/${junit.version}/junit-${junit.version}.jar"/>
   <property name="log4j.jar" 
       location="${m2_repo}/log4j/log4j/${log4j.version}/log4j-${log4j.version}.jar"/>


   <property name="javac.source" value="1.3"/>
    <property name="javac.target"
value="1.2"/>   
    <property name="javac.deprecation" value="true"/>
    <property
name="javac.debug" value="true"/>
       
    <target name="init"/>
    
    <target
na
 me="clean" depends="init">
    	<delete dir="target"/>
    </target>
    
   
    <target name="compile" depends="init">
        <mkdir dir="target/classes"/>
   	<javac destdir="target/classes"
           srcdir="src/main/java"
    	   deprecation="${javac.deprecation}"
   	   debug="${javac.debug}"
    	   target="${javac.target}"
    	   source="${javac.source}"
   	   classpath="${log4j.jar}"/>
    	<copy todir="target/classes">
    	    <fileset
dir="src/main/resources"/>
    	</copy>
    </target>
    
    <target name="jar"
depends="compile">
    	<jar destfile="target/${project.jar}"
    	     basedir="target/classes">
   	  	<manifest>
    			<attribute name="Built-By" value="${user.name}"/>
  
 			<section name="common">
      				<attribute name="Specification-Title" value="${project.title}"/>
     				<attribute name="Specification-Version" value="${project.version}"/>
     
				<attribute name="Specification-Vendor" value="Apache Software Foundation"/>
   
    				<attribute name="Implementation-Title" value="${project.title}"/>
      			
<attribute name="Implementation-Version" value="${project.version}"/> 
      				<attribute
name="Implementation-Vendor" value="Apache Software Foundation"/>
    			</section>
   		</manifest>    	     
    	</jar>
    </target>    

    <target
name="test-compile" depends="compile">
        <mkdir dir="target/test-classes"/>
   	<javac destdir="target/test-classes"
           srcdir="src/test/java"
    	   deprecation="${javac.deprecation}"
   	   debug="${javac.debug}"
    	   target="${javac.target}"
    	   source="${javac.source}"
   	   classpath="${log4j.jar}:${junit.jar}:target/classes"/>
    	<copy todir="target/test-classes">
   		<fileset dir="src/test/resources"/>
    	</copy>
    </target>    


   <target name="test" depends="test-compile">
    	<junit printsummary="yes">
   	    <classpath path="target/test-classes:target/classes:${log4j.jar}"/>
    		<batchtest>
   			<
 fileset dir="src/test/java/">
    				<include name="**/*TestCase.java"/>
    	
		<include name="**/*Test.java"/>
    			</fileset>
    	    </batchtest>
   	    <formatter type="plain" usefile="false"/>
    	</junit>
    </target>
   
	
	<target name="gump" depends="test"/>

</project>
\ No newline at end of file
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+
+<!--
+
+This is a minimal build file to support Gump.
+Use of Maven to build this component is recommended.
+
+-->
+<project default="test">
+    <!--  use build.properties file or command line to override these properties  -->
+    <property file="build.properties"/>
+	
+	<!--  project details  -->
+    <property name="project.name" value="apache-log4j-component"/>
+    <property name="project.title" value="Component"/>
+    <property name="project.version" value="0.1-SNAPSHOT"/>
+    <property name="project.jar" value="${project.name}-${project.version}.jar"/>
+    
+    <!--  Location of local Maven 2 repository   -->
+    <property name="m2_repo" location="${user.home}/.m2/repository"/>
+
+	<!--  Versions for dependencies   -->
+    <property name="log4j.version" value="1.2.14"/>
+    <property name="junit.version" value="3.8.1"/>
+	
+	<!--  Dependency locations - assumed to be in Maven 2 repository   -->
+    <property name="junit.jar" 
+       location="${m2_repo}/junit/junit/${junit.version}/junit-${junit.version}.jar"/>
+    <property name="log4j.jar" 
+       location="${m2_repo}/log4j/log4j/${log4j.version}/log4j-${log4j.version}.jar"/>
+
+    <!--   Java compiler settings   -->
+    <property name="javac.source" value="1.3"/>
+    <property name="javac.target" value="1.2"/>   
+    <property name="javac.deprecation" value="true"/>
+    <property name="javac.debug" value="true"/>
+       
+    <target name="init"/>
+    
+    <target name="clean" depends="init" description="Clean up generated files">
+    	<delete dir="target"/>
+    </target>
+    
+    
+    <target name="compile" depends="init" description="Compile implementation files">
+        <mkdir dir="target/classes"/>
+    	<javac destdir="target/classes"
+           srcdir="src/main/java"
+    	   deprecation="${javac.deprecation}"
+    	   debug="${javac.debug}"
+    	   target="${javac.target}"
+    	   source="${javac.source}"
+    	   classpath="${log4j.jar}"/>
+    	<copy todir="target/classes">
+    	    <fileset dir="src/main/resources"/>
+    	</copy>
+    </target>
+    
+    <target name="jar" depends="compile" description="Create jar">
+    	<jar destfile="target/${project.jar}"
+    	     basedir="target/classes">
+    	  	<manifest>
+    			<attribute name="Built-By" value="${user.name}"/>
+    			<section name="common">
+      				<attribute name="Specification-Title" value="${project.title}"/>
+      				<attribute name="Specification-Version" value="${project.version}"/>
+      				<attribute name="Specification-Vendor" value="Apache Software Foundation"/>
+      				<attribute name="Implementation-Title" value="${project.title}"/>
+      				<attribute name="Implementation-Version" value="${project.version}"/> 
+      				<attribute name="Implementation-Vendor" value="Apache Software Foundation"/>
+    			</section>
+    		</manifest>    	     
+    	</jar>
+    </target>    
+
+    <target name="test-compile" depends="compile" description="Compile test files">
+        <mkdir dir="target/test-classes"/>
+    	<javac destdir="target/test-classes"
+           srcdir="src/test/java"
+    	   deprecation="${javac.deprecation}"
+    	   debug="${javac.debug}"
+    	   target="${javac.target}"
+    	   source="${javac.source}"
+    	   classpath="${log4j.jar}:${junit.jar}:target/classes"/>
+    	<copy todir="target/test-classes">
+    		<fileset dir="src/test/resources"/>
+    	</copy>
+    </target>    
+
+
+    <target name="test" depends="test-compile" description="Run unit tests">
+    	<junit printsummary="yes">
+    	    <classpath path="target/test-classes:target/classes:${log4j.jar}"/>
+    		<batchtest>
+    			<fileset dir="src/test/java/">
+    				<include name="**/*TestCase.java"/>
+    				<include name="**/*Test.java"/>
+    			</fileset>
+    	    </batchtest>
+    	    <formatter type="plain" usefile="false"/>
+    	</junit>
+    </target>    
+	
+	<!--  This target is executed by Gump.  -->
+	<target name="gump" depends="test"/>
+
+</project>



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message