forked from J-Rojas/xmltask
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to Java 7, Ant 1.9.6, fix warnings and deprecated stuff
- Loading branch information
Showing
33 changed files
with
223 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path=""/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> | ||
<classpathentry kind="lib" path="lib/ant.jar"/> | ||
<classpathentry kind="lib" path="lib/hamcrest-core-1.3.jar"/> | ||
<classpathentry kind="lib" path="lib/junit-4.12.jar"/> | ||
<classpathentry kind="output" path="classes"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/classes/ | ||
/TEST-*.txt | ||
/xmltask.jar | ||
/xmltask.tar.gz | ||
/xmltask-v*.jar | ||
/xmltask-v*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>XmlTask</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 | ||
org.eclipse.jdt.core.compiler.compliance=1.7 | ||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
org.eclipse.jdt.core.compiler.source=1.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
<target name="javac" depends="init" description="Java source build"> | ||
<mkdir dir="classes"/> | ||
<!-- then compile --> | ||
<javac srcdir="." destdir="classes" debug="on" nowarn="true" source="1.5" target="1.5"> | ||
<javac srcdir="." destdir="classes" debug="on" nowarn="true" source="1.7" target="1.7" includeantruntime="false"> | ||
<include name="**/*.java"/> | ||
</javac> | ||
<copy file="xmltask.properties" todir="classes"/> | ||
|
@@ -47,10 +47,11 @@ | |
<test name="com.oopsconsultancy.xmltask.test.TestXmlReplacement"/> | ||
<classpath> | ||
<pathelement location="${basedir}/classes"/> | ||
<pathelement location="lib/junit-4.12.jar"/> | ||
<pathelement location="lib/hamcrest-core-1.3.jar"/> | ||
</classpath> | ||
<formatter type="plain"/> | ||
</junit> | ||
<echo>Tests succeed!</echo> | ||
</target> | ||
|
||
<target name="main" depends="javac,test" description="Complete build/test"/> | ||
|
@@ -68,8 +69,7 @@ | |
<echo>Created .jar and .tar.gz</echo> | ||
</target> | ||
|
||
<target name="deliver" depends="package" description="Delivers to the Sourceforge site"> | ||
<!-- perform my local deployment for writing to Sourceforge --> | ||
<target name="deliver" depends="package" description="Delivers"> | ||
<!-- create a web page with the correct version --> | ||
<checksum file="${tarfile}.gz" property="GZ_MD5"/> | ||
<checksum file="${jarfile}" property="JAR_MD5"/> | ||
|
@@ -84,32 +84,12 @@ | |
<replace file="/tmp/xmltask.html" token="@JAR_MD5@" value="${JAR_MD5}"/> | ||
<replace file="/tmp/xmltask.html" token="@JAR_14_MD5@" value="${JAR_14_MD5}"/> | ||
|
||
<!-- get and confirm the xmltask version --> | ||
<input message="Distribute [${com.oopsconsultancy.xmltask.version}] to Sourceforge " validargs="y,n" addproperty="distribute"/> | ||
<condition property="do.abort"> | ||
<equals arg1="n" arg2="${distribute}"/> | ||
</condition> | ||
<fail if="do.abort"/> | ||
|
||
<echo>Created version stamped documentation page /tmp/xmltask.html</echo> | ||
|
||
<!-- generate versioned files for Sourceforge dispatch --> | ||
<!-- generate versioned files for dispatch --> | ||
<copy file="${jarfile}" tofile="${v_jarfile}"/> | ||
<copy file="${tarfile}.gz" tofile="${v_tarfile}.gz"/> | ||
<echo>Created ${v_jarfile}, ${v_tarfile}.gz</echo> | ||
|
||
<!-- sends the files to Sourceforge.net --> | ||
<echo>FTPing to upload.sourceforge.net</echo> | ||
<ftp server="upload.sourceforge.net" | ||
password="[email protected]" | ||
userid="anonymous" | ||
verbose="yes" | ||
remotedir="/incoming" | ||
depends="yes"> | ||
<fileset dir="."> | ||
<include name="${v_jarfile}"/> | ||
<include name="${v_tarfile}.gz"/> | ||
</fileset> | ||
</ftp> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0"?> | ||
<project name="XmlTask" default="main" basedir="."> | ||
<!-- $Id: build.xml,v 1.23 2007/04/26 20:16:33 bagnew Exp $ --> | ||
<!-- $Id: build.xml,v 1.24 2009/09/14 17:18:50 bagnew Exp $ --> | ||
<target name="init"> | ||
<!-- | ||
<property name="build.compiler" value="jikes"/> | ||
|
@@ -20,18 +20,10 @@ | |
<target name="javac" depends="init" description="Java source build"> | ||
<mkdir dir="classes"/> | ||
<!-- then compile --> | ||
<javac srcdir="." destdir="." debug="on" nowarn="true" source="1.4"> | ||
<include name="**/XMLCatalog.java"/> | ||
</javac> | ||
<javac srcdir="." destdir="classes" debug="on" nowarn="true" source="1.4"> | ||
<javac srcdir="." destdir="classes" debug="on" nowarn="true" source="1.7" target="1.7" includeantruntime="false"> | ||
<include name="**/*.java"/> | ||
</javac> | ||
<copy file="xmltask.properties" todir="classes"/> | ||
<!-- we've built against dummy XPathAPI classes so we | ||
can compile pre/post JDK 1.5 classes in the absence | ||
of one or the other. We then delete the dummy classes --> | ||
<delete dir="classes/com/sun"/> | ||
<delete dir="classes/org/apache"/> | ||
</target> | ||
|
||
<target name="clean" depends="init" description="Clean classes"> | ||
|
@@ -55,10 +47,11 @@ | |
<test name="com.oopsconsultancy.xmltask.test.TestXmlReplacement"/> | ||
<classpath> | ||
<pathelement location="${basedir}/classes"/> | ||
<pathelement location="lib/junit-4.12.jar"/> | ||
<pathelement location="lib/hamcrest-core-1.3.jar"/> | ||
</classpath> | ||
<formatter type="plain"/> | ||
</junit> | ||
<echo>Tests succeed!</echo> | ||
</target> | ||
|
||
<target name="main" depends="javac,test" description="Complete build/test"/> | ||
|
@@ -76,8 +69,7 @@ | |
<echo>Created .jar and .tar.gz</echo> | ||
</target> | ||
|
||
<target name="deliver" depends="package" description="Delivers to the Sourceforge site"> | ||
<!-- perform my local deployment for writing to Sourceforge --> | ||
<target name="deliver" depends="package" description="Delivers"> | ||
<!-- create a web page with the correct version --> | ||
<checksum file="${tarfile}.gz" property="GZ_MD5"/> | ||
<checksum file="${jarfile}" property="JAR_MD5"/> | ||
|
@@ -92,32 +84,12 @@ | |
<replace file="/tmp/xmltask.html" token="@JAR_MD5@" value="${JAR_MD5}"/> | ||
<replace file="/tmp/xmltask.html" token="@JAR_14_MD5@" value="${JAR_14_MD5}"/> | ||
|
||
<!-- get and confirm the xmltask version --> | ||
<input message="Distribute [${com.oopsconsultancy.xmltask.version}] to Sourceforge " validargs="y,n" addproperty="distribute"/> | ||
<condition property="do.abort"> | ||
<equals arg1="n" arg2="${distribute}"/> | ||
</condition> | ||
<fail if="do.abort"/> | ||
|
||
<echo>Created version stamped documentation page /tmp/xmltask.html</echo> | ||
|
||
<!-- generate versioned files for Sourceforge dispatch --> | ||
<!-- generate versioned files for dispatch --> | ||
<copy file="${jarfile}" tofile="${v_jarfile}"/> | ||
<copy file="${tarfile}.gz" tofile="${v_tarfile}.gz"/> | ||
<echo>Created ${v_jarfile}, ${v_tarfile}.gz</echo> | ||
|
||
<!-- sends the files to Sourceforge.net --> | ||
<echo>FTPing to upload.sourceforge.net</echo> | ||
<ftp server="upload.sourceforge.net" | ||
password="[email protected]" | ||
userid="anonymous" | ||
verbose="yes" | ||
remotedir="/incoming" | ||
depends="yes"> | ||
<fileset dir="."> | ||
<include name="${v_jarfile}"/> | ||
<include name="${v_tarfile}.gz"/> | ||
</fileset> | ||
</ftp> | ||
</target> | ||
</project> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.