# HG changeset patch # User smith@nwoca.org # Date 1302984376 14400 # Node ID 1918a6aed50a2051965a0e85f2de9b1d8e58e81d Initial ant tasks for SSDT develkit diff -r 000000000000 -r 1918a6aed50a .hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,10 @@ +\.orig$ +\.orig\..*$ +\.chg\..*$ +\.rej$ +\.conflict\~$ +glob:build/* +glob:dist/* +glob:nbproject/private/* +glob:.idea/workspace.* + diff -r 000000000000 -r 1918a6aed50a .idea/.name --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.idea/.name Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,1 @@ +ssdtant \ No newline at end of file diff -r 000000000000 -r 1918a6aed50a .idea/ant.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.idea/ant.xml Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff -r 000000000000 -r 1918a6aed50a .idea/compiler.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.idea/compiler.xml Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,24 @@ + + + + + + diff -r 000000000000 -r 1918a6aed50a .idea/copyright/ODE.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.idea/copyright/ODE.xml Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff -r 000000000000 -r 1918a6aed50a .idea/copyright/profiles_settings.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.idea/copyright/profiles_settings.xml Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff -r 000000000000 -r 1918a6aed50a .idea/dictionaries/SMITH.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.idea/dictionaries/SMITH.xml Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff -r 000000000000 -r 1918a6aed50a .idea/encodings.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.idea/encodings.xml Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,5 @@ + + + + + diff -r 000000000000 -r 1918a6aed50a .idea/misc.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.idea/misc.xml Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Spelling + + + + + SpellCheckingInspection + + + + + + + http://www.w3.org/1999/xhtml + + + + + + + + + + + + + + + + + + + + diff -r 000000000000 -r 1918a6aed50a .idea/modules.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.idea/modules.xml Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,9 @@ + + + + + + + + + diff -r 000000000000 -r 1918a6aed50a .idea/uiDesigner.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.idea/uiDesigner.xml Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 000000000000 -r 1918a6aed50a .idea/vcs.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.idea/vcs.xml Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,7 @@ + + + + + + + diff -r 000000000000 -r 1918a6aed50a Ssdtant.iml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Ssdtant.iml Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 000000000000 -r 1918a6aed50a build.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build.xml Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,74 @@ + + + + + + + + + + + Builds, tests, and runs the project SSDT Ant Tasks. + + + diff -r 000000000000 -r 1918a6aed50a ivy.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ivy.xml Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff -r 000000000000 -r 1918a6aed50a ivysettings.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ivysettings.xml Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff -r 000000000000 -r 1918a6aed50a nbproject/build-impl.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nbproject/build-impl.xml Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,896 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + + + + + + java -cp "${run.classpath.with.dist.jar}" ${main.class} + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 000000000000 -r 1918a6aed50a nbproject/genfiles.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nbproject/genfiles.properties Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,11 @@ +build.xml.data.CRC32=f0bc348c +build.xml.script.CRC32=82ccf081 +build.xml.stylesheet.CRC32=28e38971@1.38.3.45 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=f0bc348c +nbproject/build-impl.xml.script.CRC32=68cd5525 +nbproject/build-impl.xml.stylesheet.CRC32=229523de@1.38.3.45 +nbproject/groovy-build.xml.data.CRC32=f0bc348c +nbproject/groovy-build.xml.script.CRC32=542f299d +nbproject/groovy-build.xml.stylesheet.CRC32=451a613c@1.12.1 diff -r 000000000000 -r 1918a6aed50a nbproject/groovy-build.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nbproject/groovy-build.xml Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + diff -r 000000000000 -r 1918a6aed50a nbproject/ivy-impl.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nbproject/ivy-impl.xml Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 000000000000 -r 1918a6aed50a nbproject/project.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nbproject/project.properties Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,74 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=SSDT Ant Tasks +application.vendor=smith +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form,**/*.groovy +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/ssdt-ant.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +excludes= +includes=** +jar.compress=false +javac.classpath=\ + ${libs.groovy-all.classpath} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.processorpath=\ + ${javac.classpath} +javac.source=1.5 +javac.target=1.5 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir}:\ + ${libs.junit.classpath}:\ + ${libs.junit_4.classpath}:\ + ${libs.groovy-all.classpath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +meta.inf.dir=${src.dir}/META-INF +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value +# or test-sys-prop.name=value to set system properties for unit tests): +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test +compile.on.save.unsupported.groovy=true diff -r 000000000000 -r 1918a6aed50a nbproject/project.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nbproject/project.xml Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,35 @@ + + + org.netbeans.modules.java.j2seproject + + + + + + + + + + + + + SSDT Ant Tasks + + + + + + + + + ivy.xml + ivysettings.xml + + + + + + + + + diff -r 000000000000 -r 1918a6aed50a src/org/ssdt_ohio/tools/ant/AddDependencyTask.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/org/ssdt_ohio/tools/ant/AddDependencyTask.java Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,43 @@ +package org.ssdt_ohio.tools.ant; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.Project; +import org.apache.tools.ant.Target; +import org.apache.tools.ant.Task; + +/** @author smith */ +public class AddDependencyTask extends Task { + + + private String target; + private String depends; + + @Override + public void execute() throws BuildException { + if (target == null) { + throw new BuildException("target attribute is required"); + } + if (depends == null) { + throw new BuildException("depends attribute is required"); + } + + Target t = (Target) getProject().getTargets().get(target); + + if (t.dependsOn(depends)) { + log(target +" already depends on " + depends, Project.MSG_VERBOSE); + } else { + log("Adding \"" + depends + "\" dependency to \"" + target + "\"", Project.MSG_VERBOSE); + + t.addDependency(depends); + } + } + + public void setTarget(String target) { + this.target = target; + } + + public void setDepends(String depends) { + this.depends = depends; + } +} + diff -r 000000000000 -r 1918a6aed50a src/org/ssdt_ohio/tools/ant/antlib.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/org/ssdt_ohio/tools/ant/antlib.xml Sat Apr 16 16:06:16 2011 -0400 @@ -0,0 +1,3 @@ + + + \ No newline at end of file