Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-cmd-app
In directory usw-pr-cvs1:/tmp/cvs-serv13010/src/tutorials/cayenne-cmd-app
Modified Files:
build.xml
Log Message:
fixed build scripts to use new tutorial source folders
Index: build.xml
===================================================================
RCS file: /cvsroot/cayenne/cayenne/src/tutorials/cayenne-cmd-app/build.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- build.xml 1 Oct 2002 05:12:26 -0000 1.1
+++ build.xml 2 Oct 2002 03:50:00 -0000 1.2
@@ -1,6 +1,5 @@
<?xml version="1.0"?>
-
<!-- =============================================== -->
<!-- cayenne-cmd-app tutorial buildfile. -->
<!-- =============================================== -->
@@ -8,6 +7,7 @@
<property name="tutorial.subpath" value="tutorials/cayenne-cmd-app"/>
<property name="tutorial.build" value="${build}/${tutorial.subpath}/classes"/>
<property name="tutorial.src" value="src/${tutorial.subpath}/java"/>
+ <property name="tutorial.dist" value="${dist}/src/${tutorial.subpath}"/>
<path id="classpath">
@@ -20,23 +20,24 @@
<target name="prepare">
<mkdir dir="${tutorial.build}"/>
+ <mkdir dir="${tutorial.dist}"/>
</target>
<target name="compile" depends="prepare">
- <javac srcdir="${tutorial.src}"
- destdir="${tutorial.build}"
- debug="on"
- deprecation="on">
+ <javac srcdir="${tutorial.src}"
+ destdir="${tutorial.build}"
+ debug="on"
+ deprecation="on">
<classpath refid="classpath"/>
</javac>
</target>
- <target name="dist-src">
-
- </target>
-
- <target name="dist-bin" depends="compile">
-
+ <target name="dist-src" depends="prepare">
+ <copy todir="${tutorial.dist}">
+ <fileset dir="src/${tutorial.subpath}">
+ <exclude name="build.xml"/>
+ </fileset>
+ </copy>
</target>
</project>
|