You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by he...@apache.org on 2005/02/02 11:47:50 UTC

svn commit: r149508 - webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/sample1/build.xml

Author: hemapani
Date: Wed Feb  2 02:47:48 2005
New Revision: 149508

URL: http://svn.apache.org/viewcvs?view=rev&rev=149508
Log:
update the sample1 to use the hash code instead 

Added:
    webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/sample1/build.xml

Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/sample1/build.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/sample1/build.xml?view=auto&rev=149508
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/sample1/build.xml (added)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/sample1/build.xml Wed Feb  2 02:47:48 2005
@@ -0,0 +1,52 @@
+<?xml version="1.0"?>
+<project basedir="." default="jar">
+	<property name="src" location="src"/>
+	<property name="build" location="build"/>
+	<property name="build.classes" location="${build}/classes"/>
+	<property name="build.lib" location="${build}/lib"/>
+	<property name="lib" location="lib"/>
+	<property name="root" location="../../../"/>
+	<property name="jar.dir" location="${root}/target/test-resources/deployment/services"/>
+	
+	<path id="axis.test.classpath">
+		<path refid="maven.dependency.classpath"></path>
+		<pathelement location="${root}/target/classes"/>
+	</path>
+	
+	<target name="compile" depends="init" unless="jars.uptodate">
+	   <mkdir dir="${build.classes}"/>
+	   <mkdir dir="${build.lib}"/>
+		<javac destdir="${build.classes}" debug="on">
+			<classpath refid="axis.test.classpath" />
+			<src path="${src}"/>
+		</javac>
+	</target>
+	
+	<target name="jar" depends="compile" unless="jars.uptodate">
+       <copy todir="${build.classes}/META-INF">
+			<fileset dir="${src}/META-INF/">
+			<include name="**/*.xml"/>
+			<exclude name="build.xml"/>
+			</fileset>
+		</copy>
+
+		<mkdir dir="${root}/target/test-resources/samples/"/>
+		<jar jarfile="${root}/target/test-resources/samples/echo.jar" basedir="${build.classes}" >
+			<include name="**" />
+		</jar>
+		<delete dir="${build}"/>
+	</target>
+	
+	<target name="init">
+		<uptodate property="jars.uptodate" targetfile="${jar.dir}/echo.jar">
+			<srcfiles dir="${src}">
+				<include name="**/*.java"/>
+				<include name="**/*.xml"/>
+				<include name="**/*.wsdl"/>
+				<exclude name="${build}/**"/>
+			</srcfiles>
+		</uptodate>
+		<echo message="the files are up to date = ${jars.uptodate}"></echo>
+	</target>
+	
+</project>