]> source.dussan.org Git - poi.git/commitdiff
Corrected scratchpad targets (generate-*)
authorNicola Ken Barozzi <nicolaken@apache.org>
Sat, 23 Mar 2002 15:45:41 +0000 (15:45 +0000)
committerNicola Ken Barozzi <nicolaken@apache.org>
Sat, 23 Mar 2002 15:45:41 +0000 (15:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352263 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/targets/generate-records.xml [deleted file]
src/scratchpad/targets/generate-types.xml [deleted file]
src/scratchpad/targets/scratchpad.xtarget
tools/centipede/targets/preinit.xtarget

diff --git a/src/scratchpad/targets/generate-records.xml b/src/scratchpad/targets/generate-records.xml
deleted file mode 100644 (file)
index e7d05de..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-
-<project default="generate-records" basedir=".." name="generate-records">
-  <target name="generate-records" depends="prepare"
-     description="Generates the record source code">
-
-      <java classname="org.apache.poi.dev.RecordGenerator" fork="yes">
-          <arg value="src/records/definitions"/>
-          <arg value="src/records/styles"/>
-          <arg value="src/java"/>
-          <arg value="src/testcases"/>
-          <classpath>
-              <path refid="scratchpad.classpath"/>
-              <pathelement location="${build.scratchpad.dest}"/>
-          </classpath>
-      </java>
-
-  </target>
-</project>
-
\ No newline at end of file
diff --git a/src/scratchpad/targets/generate-types.xml b/src/scratchpad/targets/generate-types.xml
deleted file mode 100644 (file)
index 99de11f..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<project default="generate-types" basedir=".." name="generate-types">
- <target name="generate-types" depends="prepare"
-     description="Generates the record source code">
-
-      <java classname="org.apache.poi.dev.RecordGenerator" fork="yes">
-          <arg value="src/types/definitions"/>
-          <arg value="src/types/styles"/>
-          <arg value="src/scratchpad/src"/>
-          <arg value="src/scratchpad/testcases"/>
-          <classpath>
-              <path refid="scratchpad.classpath"/>
-              <pathelement location="${build.scratchpad.dest}"/>
-          </classpath>
-      </java>
-
-   </target>
-</project>
\ No newline at end of file
index a39072512070cc297bdff6877c1c476a0597056f..1476fcbb63f5e48243b4913745a2910135edad15 100644 (file)
@@ -1,7 +1,7 @@
   <!-- =================================================================== -->
   <!-- Interactive scratchpad builds                                       -->
   <!-- =================================================================== -->
-  <target name="scratchpad" depends="init" description="Interactive Scratchpad Build">
+  <target name="scratchpad" depends="prepare" description="Interactive Scratchpad Build">
     <echo message="--------------------------------------------------------------"/>
     <echo message=" "/>    
     <echo message="          ${fullname} ${version} SCRATCHPAD "/>
     <property name="input.selection" value=""/>
     <user-input name="input.selection">Please select a target </user-input>
 
-    <ant antfile="src/scratchpad/targets/${input.selection}.xml"/>
+    <antcall target="${input.selection}"/>
 
   </target>
+
+  <target name="generate-records" depends="prepare"
+     description="Generates the record source code">
+
+      <java classname="org.apache.poi.dev.RecordGenerator" fork="yes">
+          <arg value="src/records/definitions"/>
+          <arg value="src/records/styles"/>
+          <arg value="src/java"/>
+          <arg value="src/testcases"/>
+          <classpath>
+              <path refid="scratchpad.classpath"/>
+              <pathelement location="${build.scratchpad.dest}"/>
+          </classpath>
+      </java>
+
+  </target>
+  
+   <target name="generate-types" depends="prepare"
+     description="Generates the record source code">
+
+      <java classname="org.apache.poi.dev.RecordGenerator" fork="yes">
+          <arg value="src/types/definitions"/>
+          <arg value="src/types/styles"/>
+          <arg value="src/scratchpad/src"/>
+          <arg value="src/scratchpad/testcases"/>
+          <classpath>
+              <path refid="scratchpad.classpath"/>
+              <pathelement location="${build.scratchpad.dest}"/>
+          </classpath>
+      </java>
+
+   </target>
\ No newline at end of file
index 6fb6325edcfc24d19e44e7393aedd9b4c1fd6fa9..4475a4b4227b507b411d5898dc2c3acaf32bdabe 100644 (file)
@@ -51,7 +51,7 @@
     <pathelement path="${build.root}/jakarta-poi/classes"/>
   </path>
 
 <path id="scratchpad.classpath">
+ <path id="scratchpad.classpath">
     <fileset dir="./lib/endorsed">
       <include name="*.jar"/>
     </fileset>