diff options
| -rw-r--r-- | samples/xml/module.ant | 15 | ||||
| -rw-r--r-- | samples/xml/module.ivy | 33 |
2 files changed, 48 insertions, 0 deletions
diff --git a/samples/xml/module.ant b/samples/xml/module.ant new file mode 100644 index 0000000..8f3a10d --- /dev/null +++ b/samples/xml/module.ant @@ -0,0 +1,15 @@ +<?xml version="1.0"?> +<project name="org.apache.easyant#standard-java-app" xmlns:ea="antlib:org.apache.easyant"> + <description> + This easyant module.ant sample file is optionnal and designed to customize your build with your own specific target. + </description> + + <target name="an-additionnal-target"> + <echo>my awesome additionnal target</echo> + </target> + + <target name="a-specific-pre-compile-step" extensionOf="abstract-compile:compile-ready"> + <echo>i would love easyant i could easily plug my own specific pre compile step</echo> + </target> + +</project> diff --git a/samples/xml/module.ivy b/samples/xml/module.ivy new file mode 100644 index 0000000..0185531 --- /dev/null +++ b/samples/xml/module.ivy @@ -0,0 +1,33 @@ +<?xml version="1.0"?> +<ivy-module version="2.0" xmlns:ea="http://www.easyant.org"> + <info organisation="org.apache.easyant" module="standard-java-app" revision="0.1" status="integration" > + <description> + this is a easyant module.ivy sample file for java standard application + </description> + <!-- + This easyant section is equivalent to having a module.ant like this: + + <project name="org.apache.easyant#standard-java-app" + xmlns:ea="antlib:org.apache.easyant"> + + <property name="run.main.classname" value="org.apache.easyant.example.Example"/> + + <ea:build organisation="org.apache.easyant.buildtypes" module="build-std-java" revision="0.9"/> + <ea:plugin organisation="org.apache.easyant.plugins" module="run-java" revision="0.9"/> + </project> + --> + <ea:build organisation="org.apache.easyant.buildtypes" module="build-std-java" revision="0.9"/> + <ea:property name="run.main.classname" value="org.apache.easyant.example.Example"/> + <ea:plugin organisation="org.apache.easyant.plugins" module="run-java" revision="0.9"/> + </ea:build> + </info> + <configurations> + <conf name="default" visibility="public" description="runtime dependencies and master artifact can be used with this conf"/> + <conf name="test" visibility="private" description="this scope indicates that the dependency is not required for normal use of the application, and is only available for the test compilation and execution phases."/> + </configurations> + <dependencies> + <dependency org="hsqldb" name="hsqldb" rev="1.8.0.7" conf="default->default"/> + <dependency org="junit" name="junit" rev="4.4" conf="test->default" /> + + </dependencies> +</ivy-module> |
