You are viewing a plain text version of this content. The canonical link for it is here.
Posted to easyant-commits@incubator.apache.org by hi...@apache.org on 2011/02/17 17:01:56 UTC
svn commit: r1071697 [40/42] - in /incubator/easyant: buildtypes/
buildtypes/trunk/ buildtypes/trunk/build-osgi-bundle-java/
buildtypes/trunk/build-osgi-bundle-java/src/
buildtypes/trunk/build-osgi-bundle-java/src/main/
buildtypes/trunk/build-osgi-bund...
Added: incubator/easyant/plugins/trunk/source-jar/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/source-jar/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/plugins/trunk/source-jar/module.ivy (added)
+++ incubator/easyant/plugins/trunk/source-jar/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,56 @@
+<!--
+ Copyright 2008-2010 the EasyAnt project
+
+ See the NOTICE file distributed with this work for additional information
+ regarding copyright ownership.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+ <info organisation="org.apache.easyant.plugins" module="source-jar" revision="0.1">
+ <description>
+ <p>This module provides source jar packaging feature.</p>
+
+ <p>
+ You can bind targets of this plugin to package phase by using bindtarget element in your module.ivy file.
+ Example :
+ <code type="xml">
+ <plugin name="source-jar" rev="0.1" as="source-jar"/>
+ <!-- for main sources -->
+ <bindtarget target="source-jar:main" tophase="package"/>
+ <!-- for test sources -->
+ <bindtarget target="source-jar:test" tophase="package"/>
+ </code>
+ Or as a nested element of the plugin
+ <code type="xml">
+ <plugin name="source-jar" rev="0.1" as="source-jar">
+ <!-- here, the target prefix is not mandatory as easyant can determine it from plugin element -->
+ <!-- for main sources -->
+ <bindtarget target=":main" tophase="package"/>
+ <!-- for test sources -->
+ <bindtarget target=":test:test" tophase="package"/>
+ </plugin>
+ </code>
+ </p>
+ </description>
+ <ea:build organisation="org.apache.easyant.buildtypes" module="build-std-ant-plugin" revision="0.1"/>
+ </info>
+ <configurations>
+ <conf name="default" description="runtime dependencies artifact can be used with this conf"/>
+ <conf name="test" 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."/>
+ <conf name="provided" description="this is much like compile, but indicates you expect the JDK or a container to provide it. It is only available on the compilation classpath, and is not transitive."/>
+ </configurations>
+ <publications>
+ <artifact type="ant"/>
+ </publications>
+</ivy-module>
Propchange: incubator/easyant/plugins/trunk/source-jar/module.ivy
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/easyant/plugins/trunk/source-jar/module.ivy
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/easyant/plugins/trunk/source-jar/module.ivy
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/easyant/plugins/trunk/source-jar/src/main/resources/source-jar.ant
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/source-jar/src/main/resources/source-jar.ant?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/plugins/trunk/source-jar/src/main/resources/source-jar.ant (added)
+++ incubator/easyant/plugins/trunk/source-jar/src/main/resources/source-jar.ant Thu Feb 17 17:01:07 2011
@@ -0,0 +1,77 @@
+<!--
+ Copyright 2008-2010 the EasyAnt project
+
+ See the NOTICE file distributed with this work for additional information
+ regarding copyright ownership.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<project name="org.apache.easyant.plugins#source-jar" xmlns:ea="antlib:org.apache.easyant">
+
+ <ea:core-version requiredrevision="[0.8,+]" />
+
+ <target name=":init" phase="validate">
+ <ea:parameter phase="validate" />
+ <ea:parameter phase="package" />
+
+ <ea:parameter property="target.artifacts.main.source.jar.name" default="${module.name}-sources.jar" description="main source artifact file name" />
+
+ <ea:parameter property="target.artifacts.test.source.jar.name" default="${module.name}-test-sources.jar" description="test source artifact file name" />
+ <ea:parameter property="target.artifacts" required="true" description="destination directory for target artifacts"/>
+
+
+ <ea:parameter property="src.main.java" required="true" description="directory where main java files are stored" />
+ <ea:parameter property="src.test.java" required="true" description="directory where test java files are stored" />
+
+ <ea:parameter property="src.main.resources" required="true" description="directory where main resources files are stored" />
+ <ea:parameter property="src.test.resources" required="true" description="directory where test resources files are stored" />
+
+ <condition property="has.src.main">
+ <or>
+ <available file="${src.main.java}" />
+ <available file="${src.main.resources}" />
+ </or>
+ </condition>
+
+ <condition property="has.src.test">
+ <or>
+ <available file="${src.test.java}" />
+ <available file="${src.test.resources}" />
+ </or>
+ </condition>
+ </target>
+
+ <!-- Main Sources -->
+
+ <target name=":main" depends="validate" description="package main source as a JAR" if="has.src.main" unless="skip.source">
+ <mkdir dir="${target.artifacts}" />
+ <jar destfile="${target.artifacts}/${target.artifacts.main.source.jar.name}">
+ <fileset dir="${src.main.resources}" erroronmissingdir="false" />
+ <fileset dir="${src.main.java}" erroronmissingdir="false" />
+ </jar>
+ <ea:registerartifact type="source" ext="jar" classifier="sources" settingsRef="${project.ivy.instance}"/>
+ </target>
+
+ <!-- Test sources -->
+
+ <target name=":test" depends="validate" description="package test source as a JAR" if="has.src.test" unless="skip.source">
+ <mkdir dir="${target.artifacts}" />
+ <jar destfile="${target.artifacts}/${target.artifacts.test.source.jar.name}">
+ <fileset dir="${src.test.resources}" erroronmissingdir="false" />
+ <fileset dir="${src.test.java}" erroronmissingdir="false" />
+ </jar>
+ <ea:registerartifact type="test-source" ext="jar" classifier="test-sources" settingsRef="${project.ivy.instance}"/>
+ </target>
+
+ <target name="doit" depends=":main" />
+</project>
Propchange: incubator/easyant/plugins/trunk/source-jar/src/main/resources/source-jar.ant
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/easyant/plugins/trunk/source-jar/src/main/resources/source-jar.ant
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/easyant/plugins/trunk/source-jar/src/main/resources/source-jar.ant
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/easyant/plugins/trunk/test-junit/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/test-junit/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/plugins/trunk/test-junit/module.ivy (added)
+++ incubator/easyant/plugins/trunk/test-junit/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,34 @@
+<!--
+ Copyright 2008-2010 the EasyAnt project
+
+ See the NOTICE file distributed with this work for additional information
+ regarding copyright ownership.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+ <info organisation="org.apache.easyant.plugins" module="test-junit" revision="0.2">
+ <description>This module provides junit tests compilation and execution feature.<br/>
+This module extends abstract-test module.</description>
+ <ea:build organisation="org.apache.easyant.buildtypes" module="build-std-ant-plugin" revision="0.1"/>
+ </info>
+ <configurations>
+ <conf name="default" description="runtime dependencies artifact can be used with this conf"/>
+ <conf name="test" 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."/>
+ <conf name="provided" description="this is much like compile, but indicates you expect the JDK or a container to provide it. It is only available on the compilation classpath, and is not transitive."/>
+ </configurations>
+ <publications>
+ <artifact type="ant"/>
+ </publications>
+
+</ivy-module>
Propchange: incubator/easyant/plugins/trunk/test-junit/module.ivy
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/easyant/plugins/trunk/test-junit/module.ivy
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/easyant/plugins/trunk/test-junit/module.ivy
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/easyant/plugins/trunk/test-junit/src/main/resources/test-junit.ant
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/test-junit/src/main/resources/test-junit.ant?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/plugins/trunk/test-junit/src/main/resources/test-junit.ant (added)
+++ incubator/easyant/plugins/trunk/test-junit/src/main/resources/test-junit.ant Thu Feb 17 17:01:07 2011
@@ -0,0 +1,233 @@
+<!--
+ Copyright 2008-2010 the EasyAnt project
+
+ See the NOTICE file distributed with this work for additional information
+ regarding copyright ownership.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<project name="org.apache.easyant.plugins#test-junit"
+ xmlns:ea="antlib:org.apache.easyant">
+
+ <ea:core-version requiredrevision="[0.8,+]" />
+
+ <ea:include mrid="org.apache.easyant.plugins#abstract-test;0.1" as=":abstract-junit-test"/>
+ <ea:include mrid="org.apache.easyant.plugins#antcontrib-activator;0.1" as=":ac"/>
+
+ <target name="/skip" description="skip tests">
+ <property name="skip.test" value="true" />
+ <property name="skip.test.integration" value="true" />
+ </target>
+
+ <target name=":init" phase="validate" depends=":abstract-junit-test:init">
+ <ea:parameter phase="validate" />
+ <ea:parameter phase="test" />
+ <ea:parameter phase="integration-test" />
+
+ <ea:parameter property="test.run.includes.pattern"
+ default="**/*" description="Pattern describing class files included in test run" />
+ <ea:parameter property="test.run.excludes.pattern"
+ default="" description="Pattern describing class files excluded in test run" />
+
+ <ea:parameter property="test.integration.run.includes.pattern"
+ default="**/*" description="Pattern describing class files included in integration test run" />
+ <ea:parameter property="test.integration.run.excludes.pattern"
+ default="" description="Pattern describing class files excluded in integration test run" />
+
+ <ea:parameter property="test.run.forkmode"
+ default="perTest" description="The forkmode for junit tests; 'perTest' or 'once'"/>
+ <ea:parameter property="test.run.fork"
+ default="true" description="Run the tests in a separate VM. (true/false)"/>
+ <ea:parameter property="test.run.jvmargs"
+ default="" description="Extra parameters to pass to the test JVM, for example to enable debugging"/>
+
+ <ea:parameter property="test.integration.run.forkmode"
+ default="perTest" description="The forkmode for junit integration tests; 'perTest' or 'once'"/>
+ <ea:parameter property="test.integration.run.fork"
+ default="true" description="Run integration tests in a separate VM. (true/false)"/>
+ <ea:parameter property="test.integration.run.jvmargs"
+ default="" description="Extra parameters to pass to the integration test JVM, for example to enable debugging"/>
+
+
+ <ea:parameter property="target.test.xml" required="true"
+ description="Directory were xml test reports will be generated"/>
+ <ea:parameter property="test.run.dir"
+ default="${basedir}" description="working directory for unit test process, defaults to the project basedir"/>
+ <ea:parameter property="test.integration.run.dir"
+ default="${basedir}" description="working directory for integration test process, defaults to the project basedir"/>
+
+ <ea:parameter property="test.scan.path" default="false"
+ description="if true, the full test classpath will be scanned for additional test cases to run"/>
+ <ea:parameter property="test.jar.pattern" default=".*-test.jar"
+ description="when test.scan.path is enabled, identifies which jars should be examined for test cases"/>
+
+ <ea:parameter property="test.integration.scan.path" default="false"
+ description="if true, the full integration test classpath will be scanned for additional test cases to run"/>
+ <ea:parameter property="test.integration.jar.pattern" default=".*-test.jar"
+ description="when test.scan.path is enabled, identifies which jars should be examined for test cases"/>
+
+ <ea:path pathid="run.test.classpath" overwrite="append-if-not-exist">
+ <pathelement location="${target.test.classes}" />
+ <path refid="compile.test.classpath" />
+ </ea:path>
+
+ <ea:path pathid="run.test.integration.classpath" overwrite="append-if-not-exist">
+ <pathelement location="${target.test.integration.classes}" />
+ <path refid="compile.test.classpath" />
+ </ea:path>
+
+ </target>
+
+ <macrodef name="compute-test-path" description="Compute the set of test cases to run.">
+ <attribute name="prefix" description="one of 'test' or 'test.integration'"/>
+ <attribute name="test-archive-pattern" default=".*-test.jar" description="Name pattern for jar files on the input class path that may contain test cases."/>
+ <element name="test-path" implicit="true" description="the classpath to search for test cases"/>
+ <sequential>
+
+ <!-- declare test case resource set -->
+ <resources id="target.@{prefix}.set">
+ <fileset dir="${target.@{prefix}.classes}"
+ includes="${@{prefix}.run.includes.pattern}"
+ excludes="${@{prefix}.run.excludes.pattern}"
+ erroronmissingdir="false"/>
+ </resources>
+
+ <if>
+ <istrue value="${@{prefix}.scan.path}"/>
+ <then>
+ <for param="test.collection">
+ <test-path/>
+ <sequential>
+ <echo level="verbose">Examining @{test.collection} for test cases</echo>
+ <if>
+ <and>
+ <available file="@{test.collection}" type="file"/>
+ <matches string="@{test.collection}" pattern="${@{prefix}.jar.pattern}"/>
+ </and>
+ <then>
+ <echo level="verbose">Adding test cases from test jar @{test.collection}</echo>
+ <augment id="target.@{prefix}.set">
+ <zipfileset src="@{test.collection}" includes="${@{prefix}.run.includes.pattern}" excludes="${@{prefix}.run.excludes.pattern}"/>
+ </augment>
+ </then>
+ <else>
+ <if>
+ <available file="@{test.collection}" type="dir"/>
+ <then>
+ <echo level="verbose">Adding test cases from test class directory @{test.collection}</echo>
+ <augment id="target.@{prefix}.set">
+ <fileset dir="@{test.collection}" includes="${@{prefix}.run.includes.pattern}" excludes="${@{prefix}.run.excludes.pattern}"/>
+ </augment>
+ </then>
+ <else>
+ <echo level="verbose">Test path entry @{test.collection} does not appear to be a directory or a test jar, skipping</echo>
+ </else>
+ </if>
+ </else>
+ </if>
+ </sequential>
+ </for>
+ </then>
+ <else>
+ <echo level="verbose">Test path scanning disabled by property @{prefix}.scan.path</echo>
+ </else>
+ </if>
+
+ <condition property="skip.@{prefix}">
+ <resourcecount refid="target.@{prefix}.set" when="equal" count="0"/>
+ </condition>
+
+ </sequential>
+ </macrodef>
+
+ <macrodef name="junit-test">
+ <attribute name="prefix"/>
+ <sequential>
+ <mkdir dir="${target.test.xml}" />
+ <mkdir dir="${@{prefix}.run.dir}"/>
+
+ <junit
+ haltonfailure="off"
+ haltonerror="off"
+ errorproperty="@{prefix}.failed"
+ failureproperty="@{prefix}.failed"
+ showoutput="no"
+ printsummary="yes"
+ includeantruntime="yes"
+ dir="${@{prefix}.run.dir}"
+ fork="${@{prefix}.run.fork}" forkmode="${@{prefix}.run.forkmode}">
+
+ <jvmarg line="${@{prefix}.run.jvmargs}"/>
+
+ <classpath>
+ <path refid="run.@{prefix}.classpath" />
+ </classpath>
+
+ <formatter type="xml"/>
+ <batchtest todir="${target.test.xml}">
+ <resources refid="target.@{prefix}.set"/>
+ </batchtest>
+ </junit>
+
+ </sequential>
+ </macrodef>
+
+ <target name="-compute-test-sets" depends="test-compile" description="compute the set of test cases to run">
+
+ <compute-test-path prefix="test">
+ <path refid="compile.test.classpath" />
+ </compute-test-path>
+
+ <compute-test-path prefix="test.integration">
+ <path refid="compile.test.classpath" />
+ </compute-test-path>
+
+ </target>
+
+ <target name="-test" depends="-compute-test-sets" unless="skip.test">
+ <junit-test prefix="test"/>
+ </target>
+
+ <target name="-integration-test" depends="-compute-test-sets" unless="skip.test.integration">
+ <junit-test prefix="test.integration"/>
+ </target>
+
+ <target name=":run" if="test.mode.run" unless="skip.test" depends="-test"
+ phase="test" description="run junit tests">
+ <check-test-result propertytocheck="test.failed"
+ message="At least one test has failed. See logs in ${target.test.xml} for details or use the report target to run the test with a report"/>
+ </target>
+
+ <target name=":run-integration" if="test.mode.run" unless="skip.test.integration" depends="-integration-test"
+ phase="integration-test" description="run junit integration tests">
+ <check-test-result propertytocheck="test.integration.failed"
+ message="At least one integration test has failed. See logs in ${target.test.xml} for details or use the report target to run the test with a report" />
+ </target>
+
+ <target name=":report" if="test.mode.report" unless="skip.test" depends="-test,-integration-test"
+ phase="report" description="generate junit report">
+ <junitreport todir="${target.test.xml}">
+ <fileset dir="${target.test.xml}">
+ <include name="TEST-*.xml" />
+ </fileset>
+ <report format="frames" todir="${target.test.html}" />
+ </junitreport>
+ <fail if="test.failed"
+ message="At least one test has failed. See logs in ${target.test.xml} or report in ${target.test.html}" />
+ <fail if="test.integration.failed"
+ message="At least one integration test has failed. See logs in ${target.test.xml} or report in ${target.test.html}" />
+ </target>
+
+ <target name=":doit" depends=":run, :run-integration, :report" />
+
+</project>
Propchange: incubator/easyant/plugins/trunk/test-junit/src/main/resources/test-junit.ant
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/easyant/plugins/trunk/test-junit/src/main/resources/test-junit.ant
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/easyant/plugins/trunk/test-junit/src/main/resources/test-junit.ant
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/easyant/plugins/trunk/test-testng/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/test-testng/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/plugins/trunk/test-testng/module.ivy (added)
+++ incubator/easyant/plugins/trunk/test-testng/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,33 @@
+<!--
+ Copyright 2008-2010 the EasyAnt project
+
+ See the NOTICE file distributed with this work for additional information
+ regarding copyright ownership.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+ <info organisation="org.apache.easyant.plugins" module="test-testng" revision="0.2">
+ <description>This module provides testng tests compilation and execution feature.<br/>
+This module extends abstract-test module.</description>
+ <ea:build organisation="org.apache.easyant.buildtypes" module="build-std-ant-plugin" revision="0.1"/>
+ </info>
+ <configurations>
+ <conf name="default" description="runtime dependencies artifact can be used with this conf"/>
+ <conf name="test" 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."/>
+ <conf name="provided" description="this is much like compile, but indicates you expect the JDK or a container to provide it. It is only available on the compilation classpath, and is not transitive."/>
+ </configurations>
+ <publications>
+ <artifact type="ant"/>
+ </publications>
+</ivy-module>
Propchange: incubator/easyant/plugins/trunk/test-testng/module.ivy
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/easyant/plugins/trunk/test-testng/module.ivy
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/easyant/plugins/trunk/test-testng/module.ivy
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/easyant/plugins/trunk/test-testng/src/main/resources/test-testng.ant
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/test-testng/src/main/resources/test-testng.ant?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/plugins/trunk/test-testng/src/main/resources/test-testng.ant (added)
+++ incubator/easyant/plugins/trunk/test-testng/src/main/resources/test-testng.ant Thu Feb 17 17:01:07 2011
@@ -0,0 +1,124 @@
+<!--
+ Copyright 2008-2010 the EasyAnt project
+
+ See the NOTICE file distributed with this work for additional information
+ regarding copyright ownership.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<project name="org.apache.easyant.plugins#test-testng"
+ xmlns:ea="antlib:org.apache.easyant">
+
+ <ea:core-version requiredrevision="[0.8,+]" />
+
+ <ea:include mrid="org.apache.easyant.plugins#abstract-test;0.1" as=":abstract-testng-test"/>
+
+ <target name="/skip" description="skip tests">
+ <property name="skip.test" value="true" />
+ <property name="skip.test.integration" value="true" />
+ </target>
+
+ <target name=":init" phase="validate" depends=":abstract-testng-test:init">
+ <ea:parameter phase="validate" />
+ <ea:parameter phase="test" />
+ <ea:parameter phase="integration-test" />
+
+ <ea:parameter property="testng.filename" description="testng configuration filename" default="testng.xml"/>
+
+ <ea:path pathid="run.test.classpath" overwrite="append-if-not-exist">
+ <pathelement location="${target.test.classes}" />
+ <path refid="compile.test.classpath" />
+ </ea:path>
+
+ <ea:path pathid="run.test.integration.classpath" overwrite="append-if-not-exist">
+ <pathelement location="${target.test.integration.classes}" />
+ <path refid="compile.test.classpath" />
+ </ea:path>
+
+ <condition property="skip.test">
+ <not><isset property="has.src.test.java"/></not>
+ </condition>
+
+ <condition property="skip.test.integration">
+ <not><isset property="has.src.test.integration.java"/></not>
+ </condition>
+
+ </target>
+
+ <target name="-load" depends="provision">
+ <available property="testng.available" classname="org.testng.TestNGAntTask">
+ <classpath refid="run.test.classpath" />
+ </available>
+
+ <fail unless="testng.available" message="Testng is unavailable, perhaps you forget to add testng in you project dependencies."/>
+ <taskdef name="testng" classname="com.beust.testng.TestNGAntTask">
+ <classpath refid="run.test.classpath" />
+ </taskdef>
+ </target>
+
+ <macrodef name="testng-test">
+ <attribute name="prefix"/>
+ <sequential>
+ <mkdir dir="${target.test.xml}" />
+ <!-- Xml and HTML file will be generated in target.test.xml -->
+ <testng outputDir="${target.test.xml}"
+ haltonfailure="off"
+ failureproperty="@{prefix}.failed">
+ <classpath refid="run.@{prefix}.classpath" />
+ <xmlfileset dir="${target.@{prefix}.classes}" includes="${testng.filename}" />
+ <!-- Alternative way to launch testng, maybe this could be an alternative target? -->
+ <!--
+ <classfileset dir="${build.test.dir}" includes="**/*.class" />
+ -->
+ </testng>
+ </sequential>
+ </macrodef>
+
+ <target name="-test" depends="test-compile,-load" unless="skip.test">
+ <testng-test prefix="test"/>
+
+ </target>
+
+ <target name="-integration-test" depends="test-compile,-load" unless="skip.test.integration">
+ <testng-test prefix="test.integration"/>
+ </target>
+
+
+ <target name=":run" if="test.mode.run" unless="skip.test" depends="-test"
+ phase="test" description="run testng tests">
+ <check-test-result propertytocheck="test.failed"
+ message="At least one test has failed. See logs in ${target.test.xml} for details or use the report target to run the test with a report" />
+ </target>
+
+ <target name=":run-integration" if="test.mode.run" unless="skip.test.integration" depends="-integration-test"
+ phase="integration-test" description="run testng integration tests">
+ <check-test-result propertytocheck="test.integration.failed"
+ message="At least one integration test has failed. See logs in ${target.test.xml} for details or use the report target to run the test with a report" />
+ </target>
+
+ <target name=":report" if="test.mode.report" unless="skip.test" depends="-test,-integration-test"
+ phase="report" description="generate testng reports">
+ <junitreport todir="${target.test.xml}">
+ <fileset dir="${target.test.xml}">
+ <include name="TEST-*.xml" />
+ </fileset>
+ <report format="frames" todir="${target.test.html}" />
+ </junitreport>
+ <fail if="test.failed"
+ message="At least one test has failed. See logs in ${target.test.xml} or report in ${target.test.html}" />
+ <fail if="test.integration.failed"
+ message="At least one integration test has failed. See logs in ${target.test.xml} or report in ${target.test.html}" />
+ </target>
+
+ <target name=":doit" depends=":run, :run-integration, :report" />
+</project>
Propchange: incubator/easyant/plugins/trunk/test-testng/src/main/resources/test-testng.ant
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/easyant/plugins/trunk/test-testng/src/main/resources/test-testng.ant
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/easyant/plugins/trunk/test-testng/src/main/resources/test-testng.ant
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/easyant/plugins/trunk/webstart/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/webstart/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/plugins/trunk/webstart/module.ivy (added)
+++ incubator/easyant/plugins/trunk/webstart/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,35 @@
+<!--
+ Copyright 2008-2010 the EasyAnt project
+
+ See the NOTICE file distributed with this work for additional information
+ regarding copyright ownership.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+ <info organisation="org.apache.easyant.plugins" module="webstart" revision="0.1">
+ <description>This module allows different webstart processus.</description>
+ <ea:build organisation="org.apache.easyant.buildtypes" module="build-std-ant-plugin" revision="0.1"/>
+ </info>
+ <configurations>
+ <conf name="default" description="runtime dependencies artifact can be used with this conf"/>
+ <conf name="test" 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."/>
+ <conf name="provided" description="this is much like compile, but indicates you expect the JDK or a container to provide it. It is only available on the compilation classpath, and is not transitive."/>
+ </configurations>
+ <publications>
+ <artifact name="webstart" type="ant"/>
+ </publications>
+ <dependencies>
+ <dependency org="org.apache.easyant.tasks" name="partial-jnlp-task" rev="0.1" conf="default->default"/>
+ </dependencies>
+</ivy-module>
Propchange: incubator/easyant/plugins/trunk/webstart/module.ivy
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/easyant/plugins/trunk/webstart/module.ivy
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/easyant/plugins/trunk/webstart/module.ivy
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/easyant/plugins/trunk/webstart/src/main/resources/webstart.ant
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/webstart/src/main/resources/webstart.ant?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/plugins/trunk/webstart/src/main/resources/webstart.ant (added)
+++ incubator/easyant/plugins/trunk/webstart/src/main/resources/webstart.ant Thu Feb 17 17:01:07 2011
@@ -0,0 +1,109 @@
+<project name="org.apache.easyant.plugins;webstart"
+ xmlns:ivy="antlib:org.apache.ivy.ant"
+ xmlns:ea="antlib:org.apache.easyant">
+
+ <!-- Force compliance with easyant-core to 0.7 or higher -->
+ <ea:core-version requiredrevision="[0.8,+]" />
+
+ <macrodef name="signJars">
+ <attribute name="alias" description="the alias signer" />
+ <attribute name="storepass" description="the keystore password"/>
+ <attribute name="keypass" default="@{storepass}" description="the key password"/>
+ <attribute name="keystore" description="the path to the keystore"/>
+ <attribute name="lazy" default="false" description="tell if the already signed jars have to be signed a second time"/>
+ <element name="signFolder" optional="yes"/>
+ <sequential>
+ <echo>Sign...</echo>
+
+ <if>
+
+ <isset property="@{keystore}"/>
+
+ <then>
+
+ <signjar alias="@{alias}" keypass="@{keypass}" keystore="@{keystore}" storepass="@{storepass}" lazy="@{replaceSign}">
+ <signFolder/>
+ </signjar>
+
+
+ </then>
+ <else>
+ <signjar alias="@{alias}" keypass="@{keypass}" storepass="@{storepass}" lazy="@{replaceSign}">
+ <signFolder/>
+ </signjar>
+ </else>
+ </if>
+
+ <echo>Sign done !</echo>
+ </sequential>
+ </macrodef>
+
+ <target name=":init">
+ <ea:parameter property="jnlp.file" required="true" description="the jnlp to modify" />
+ <ea:parameter property="signJar" required="false" default="false" description="tell if the jars has to be signed" />
+ <ea:parameter property="flat.path" required="false" description="tell if the path resources have to be declared in relative or absolute" />
+
+
+ <ea:parameter property="alias" required="false" description="the alias signer" />
+ <ea:parameter property="storepass" required="false" description="the keystore password" />
+ <ea:parameter property="keypass" required="false" default="${storepass}" description="the key password" />
+ <ea:parameter property="keystore" required="false" default=" " description="the path to the keystore" />
+ <ea:parameter property="lazy" required="false" default="false" description="tell if the already signed jars have to be signed a second time" />
+ <taskdef name="partial-jnlp" classname="org.apache.easyant.tasks.JNLPTask"
+ classpathref="org.apache.easyant.plugins#webstart.classpath" />
+
+
+ </target>
+
+
+
+ <target name=":editJnlp" depends=":init, package" description="edit an existing jnlp file">
+ <echo message="[Library directory]: ${lib.main}" />
+ <echo message="[libArtifact]: ${target.artifacts}/${target.artifacts.main.jar.name}" />
+ <if>
+ <equals arg1="${flat.path}" arg2="$${flat.path}" />
+ <then>
+ <partial-jnlp mainJar="${target.artifacts}/${target.artifacts.main.jar.name}" jnlpFile="${jnlp.file}">
+ <fileset dir="${lib.main}">
+ <include name="*.jar" />
+ </fileset>
+ </partial-jnlp>
+ </then>
+ <else>
+ <partial-jnlp mainJar="${target.artifacts}/${target.artifacts.main.jar.name}" jnlpFile="${jnlp.file}" flatPathResources="${flat.path}">
+ <fileset dir="${lib.main}">
+ <include name="*.jar" />
+ </fileset>
+ </partial-jnlp>
+ </else>
+ </if>
+
+ </target>
+ <target name=":sign" depends="package">
+ <if>
+ <equals arg1="${signJar}" arg2="true" />
+ <then>
+ <signJars alias="${alias}" storepass="${storepass}" keypass="${keypass}" keystore="${keystore}" lazy="${lazy}" >
+ <signfolder>
+ <fileset dir="${lib.main}" includes="*.jar"/>
+ <fileset dir="${target.artifacts}" includes="*.jar"/>
+ </signfolder>
+ </signJars>
+ </then>
+ </if>
+ </target>
+
+ <target name=":prepare" depends=":editJnlp,:sign" description="edit the jnlp file and sign as necessary"/>
+
+
+
+ <target name=":run" depends=":prepare" description="run the application in java webstart">
+ <exec executable="javaws">
+ <arg value="${jnlp.file}" />
+ </exec>
+ </target>
+
+
+
+ <target name="doit" depends=":run" />
+</project>
Propchange: incubator/easyant/plugins/trunk/webstart/src/main/resources/webstart.ant
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/easyant/plugins/trunk/webstart/src/main/resources/webstart.ant
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/easyant/plugins/trunk/webstart/src/main/resources/webstart.ant
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/easyant/plugins/trunk/webstart/src/test/antunit/common/test-utils.ant
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/webstart/src/test/antunit/common/test-utils.ant?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/plugins/trunk/webstart/src/test/antunit/common/test-utils.ant (added)
+++ incubator/easyant/plugins/trunk/webstart/src/test/antunit/common/test-utils.ant Thu Feb 17 17:01:07 2011
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+
+<project name="easyant-test-utils">
+
+ <description>Macros and targets to assist in writing AntUnit test cases for EasyAnt</description>
+
+ <macrodef name="easyant" description="fork an easyant process for testing">
+ <attribute name="target" description="(optional) the easyant target(s), passed on the command line" default=""/>
+ <attribute name="dir" description="(optional) the base directory from which to invoke easyant" default="${basedir}"/>
+ <attribute name="home" description="(optional) location of easyant home directory" default="${user.dir}"/>
+ <attribute name="args" description="(optional) extra command line arguments to pass to the easyant process" default=""/>
+ <element name="args" description="(optional) nested <arg> elements are passed to the easyant process" implicit="true" optional="true"/>
+ <sequential>
+ <exec dir="@{dir}" executable="@{home}/bin/easyant" vmlauncher="false" failonerror="true">
+ <arg line="@{args}"/>
+ <args/>
+ <arg line="@{target}"/>
+ </exec>
+ </sequential>
+ </macrodef>
+
+</project>
\ No newline at end of file
Propchange: incubator/easyant/plugins/trunk/webstart/src/test/antunit/common/test-utils.ant
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/easyant/plugins/trunk/webstart/src/test/antunit/common/test-utils.ant
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/easyant/plugins/trunk/webstart/src/test/antunit/common/test-utils.ant
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/easyant/plugins/trunk/webstart/src/test/antunit/webstart-test.xml
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/webstart/src/test/antunit/webstart-test.xml?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/plugins/trunk/webstart/src/test/antunit/webstart-test.xml (added)
+++ incubator/easyant/plugins/trunk/webstart/src/test/antunit/webstart-test.xml Thu Feb 17 17:01:07 2011
@@ -0,0 +1,60 @@
+<!--
+ Copyright 2008-2009 the EasyAnt project
+
+ See the NOTICE file distributed with this work for additional information
+ regarding copyright ownership.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<project name="org.apache.easyant.plugins;webstart-test" xmlns:au="antlib:org.apache.ant.antunit">
+
+ <!-- Mocking required phase -->
+ <phase name="validate"/>
+ <phase name="package"/>
+
+ <!-- disable corerevision checker -->
+ <property name="skip.corerevision.checker" value="true"/>
+
+ <!-- Import your plugin -->
+ <import file="../../main/resources/webstart.ant"/>
+
+ <!-- Defines a setUp / tearDown (before each test) that cleans the environnement -->
+ <target name="clean" description="remove stale build artifacts before / after each test">
+ <delete dir="${basedir}" includeemptydirs="true">
+ <include name="**/target/**"/>
+ <include name="**/lib/**"/>
+ </delete>
+ </target>
+
+ <target name="setUp" depends="clean"/>
+ <target name="tearDown" depends="clean"/>
+
+ <!-- init test case -->
+ <target name="testInit">
+ <au:expectfailure expectedMessage="expected property 'jnlp.file': the jnlp to modify">
+ <antcall target=":init"/>
+ </au:expectfailure>
+ </target>
+
+ <!--
+ A sample ant unit test case,
+ see the antunit official documentation for more informations
+
+ <target name="testSample" description="a sample of ant unit test case">
+ <au:assertTrue>
+ <matches string="abc" pattern="abc"/>
+ </au:assertTrue>
+ </target>
+ -->
+
+</project>
Propchange: incubator/easyant/plugins/trunk/webstart/src/test/antunit/webstart-test.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/easyant/plugins/trunk/webstart/src/test/antunit/webstart-test.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/easyant/plugins/trunk/webstart/src/test/antunit/webstart-test.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/easyant/plugins/trunk/xooki/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/xooki/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/plugins/trunk/xooki/module.ivy (added)
+++ incubator/easyant/plugins/trunk/xooki/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,38 @@
+<!--
+ Copyright 2008-2010 the EasyAnt project
+
+ See the NOTICE file distributed with this work for additional information
+ regarding copyright ownership.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+ <info organisation="org.apache.easyant.plugins" module="xooki" revision="0.1">
+ <description>
+ This module provides functionalities for setting up a xooki-based documentation structure in your project.
+ </description>
+ <ea:build organisation="org.apache.easyant.buildtypes" module="build-std-ant-plugin" revision="0.1"/>
+ </info>
+ <configurations>
+ <conf name="default" description="runtime dependencies artifact can be used with this conf"/>
+ <conf name="test" 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."/>
+ <conf name="provided" description="this is much like compile, but indicates you expect the JDK or a container to provide it. It is only available on the compilation classpath, and is not transitive."/>
+ </configurations>
+ <publications>
+ <artifact type="ant"/>
+ </publications>
+ <dependencies>
+ <dependency org="xooki" name="xooki" rev="0.1"/>
+ <dependency org="org.apache.easyant.tasks" name="xooki-menu-generator" rev="0.1" conf="default"/>
+ </dependencies>
+</ivy-module>
Propchange: incubator/easyant/plugins/trunk/xooki/module.ivy
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/easyant/plugins/trunk/xooki/module.ivy
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/easyant/plugins/trunk/xooki/module.ivy
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/easyant/plugins/trunk/xooki/src/main/resources/xooki.ant
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/xooki/src/main/resources/xooki.ant?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/plugins/trunk/xooki/src/main/resources/xooki.ant (added)
+++ incubator/easyant/plugins/trunk/xooki/src/main/resources/xooki.ant Thu Feb 17 17:01:07 2011
@@ -0,0 +1,160 @@
+<!--
+ Copyright 2008-2010 the EasyAnt project
+
+ See the NOTICE file distributed with this work for additional information
+ regarding copyright ownership.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<project name="org.apache.easyant.plugins#xooki"
+ xmlns:ac="antlib:net.sf.antcontrib"
+ xmlns:ea="antlib:org.apache.easyant"
+ xmlns:ivy="antlib:org.apache.ivy.ant"
+ xmlns:xooki="antlib:xooki">
+
+ <ea:core-version requiredrevision="[0.8,+]" />
+
+ <target name=":init" phase="validate">
+ <ea:parameter property="xooki.checkUpToDate" required="false"
+ default="true" description="Proxies for the checkUpToDate xooki:generate task. Defaults to true." />
+ <ea:parameter property="src.documentation.dir" required="false"
+ default="${basedir}/src/documentation" description="Xooki source documentation." />
+ <ea:parameter property="documentation.css.dir" default="${src.documentation.dir}/style"
+ description="path where the css are stored, used for nice looking HTML" />
+ <ea:parameter property="target.documentation.dir" default="${target}/documentation"
+ description="directory where the documentation will be generated to" />
+ <ea:parameter property="xooki.temp.dir" required="false" default="${target}/temp-doc"
+ description="Temporary directory for xooki use." />
+ <ea:parameter property="xooki.resources.include.pattern" default="style/**,images/**"
+ description="Pattern describing files included in xooki documentation generation" />
+ <ea:parameter property="xooki.resources.exclude.pattern" default=""
+ description="Pattern describing files excluded in xooki documentation generation" />
+ <ea:parameter property="xooki.history.dir" default="${src.documentation.dir}/history"
+ description="directory where documentation history version are stored (used to update config.extra.js)"/>
+
+ <!-- TODO: should menu context names be inherited from the environment somehow? -->
+ <ea:parameter property="xooki.menu.contexts" default="buildtypes,plugins"
+ description="list of documentation menus for which xooki will generate menus"/>
+
+ <!-- Xooki tasks requires jdk16 -->
+ <condition property="org.apache.easyant.plugins#xooki.enabled">
+ <contains substring="1.6" string="${ant.java.version}" />
+ </condition>
+
+ <ac:if>
+ <istrue value="${org.apache.easyant.plugins#xooki.enabled}"/>
+ <ac:then>
+ <echo level="verbose">Loading xooki antlib</echo>
+ <taskdef uri="antlib:xooki" file="${src.documentation.dir}/xooki/antlib.xml" />
+ </ac:then>
+ <ac:else>
+ <echo level="warning">Xooki modules requires JDK 1.6. Xooki module will be disabled.</echo>
+ </ac:else>
+ </ac:if>
+
+ <condition property="contains.history.dir">
+ <available file="${xooki.history.dir}" type="dir"/>
+ </condition>
+
+ <ac:for list="${xooki.menu.contexts}" param="context.name">
+ <sequential>
+ <ea:registermenugenerator context="@{context.name}" type="xooki"
+ classpathref="org.apache.easyant.plugins#xooki.classpath"/>
+ </sequential>
+ </ac:for>
+ </target>
+
+ <target name=":create-skeleton" depends="validate">
+ <mkdir dir="${xooki.temp.dir}" />
+ <mkdir dir="${documentation.css.dir}" />
+ <ivy:retrieve organisation="xooki" module="xooki" inline="true" pattern="${xooki.temp.dir}/[artifact].[ext]" settingsRef="easyant.ivy.instance"/>
+ <unzip src="${xooki.temp.dir}/xooki.jar" dest="${src.documentation.dir}" />
+ <delete dir="${xooki.temp.dir}" />
+ </target>
+
+ <target name="-copy-resources" depends=":init" phase="process-documentation-resources">
+
+ <available file="${src.documentation.dir}/xooki/antlib.xml" property="xooki.skeleton.present" />
+ <fail unless="xooki.skeleton.present"
+ message="Xooki skeleton has not been correctly setup. Run easyant org.apache.easyant.plugins#xooki:create-skeleton to generate a xooki skeleton." />
+
+ <echo message="Generating xooki documentation." />
+ <mkdir dir="${target.documentation.dir}" />
+
+ <echo level="verbose" message="copying documentation resources"/>
+
+ <fileset id="xooki.resources.fileset"
+ dir="${src.documentation.dir}"
+ includes="${xooki.resources.include.pattern}"
+ excludes="${xooki.resources.exclude.pattern}" />
+
+ <copy todir="${target.documentation.dir}">
+ <fileset refid="xooki.resources.fileset"/>
+ </copy>
+
+ <!-- copy to a xooki temp dir this will allow users to generate xooki documentation -->
+ <copy todir="${xooki.temp.dir}">
+ <fileset dir="${src.documentation.dir}" id="src.documentation.fileset">
+ <include name="**/*" />
+ <exclude name="${xooki.resources.include.pattern}" />
+ </fileset>
+ </copy>
+
+ </target>
+
+ <target name="-configure-history" if="contains.history.dir" phase="process-documentation-resources">
+ <ac:for param="doc-version">
+ <path>
+ <dirset dir="${xooki.history.dir}" includes="*" />
+ </path>
+ <sequential>
+ <echo>Updating history for @{doc-version}</echo>
+ <echo file="@{doc-version}/config.extra.js"
+ message="xooki.c.setImportLevel(2);" />
+ </sequential>
+ </ac:for>
+ </target>
+
+ <target name=":generate"
+ depends="-copy-resources, -configure-history, process-documentation-resources"
+ phase="documentation"
+ if="org.apache.easyant.plugins#xooki.enabled">
+ <echo level="verbose" message="generating target documentation"/>
+
+ <dirname file="${target.documentation.dir}" property="full.target.documentation.dir" />
+ <basename file="${target.documentation.dir}" property="basename.target.documentation.dir" />
+
+ <fileset dir="${xooki.temp.dir}" id="src.documentation.fileset">
+ <include name="**/*.html" />
+ <exclude name="template.html" />
+ <exclude name="*Template.html" />
+ <exclude name="xooki/**" />
+ </fileset>
+
+ <xooki:generate destDir="${full.target.documentation.dir}/${basename.target.documentation.dir}" checkUpToDate="${xooki.checkUpToDate}">
+ <fileset refid="src.documentation.fileset"/>
+ </xooki:generate>
+ </target>
+
+ <target name=":package" depends=":generate" description="package the xooki documentation" if="org.apache.easyant.plugins#xooki.enabled">
+ <ea:parameter property="target.artifacts" default="${target}/artifacts"
+ description="destination directory for target artifacts"/>
+
+ <echo message="Packaging generated documentation." />
+ <mkdir dir="${target.artifacts}" />
+ <zip destfile="${target.artifacts}/${ivy.module}-docs.zip" basedir="${target.documentation.dir}" />
+ <ea:registerartifact type="doc" ext="zip" classifier="doc" settingsRef="${project.ivy.instance}"/>
+ </target>
+
+ <target name="doit" depends=":package" />
+</project>
Propchange: incubator/easyant/plugins/trunk/xooki/src/main/resources/xooki.ant
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/easyant/plugins/trunk/xooki/src/main/resources/xooki.ant
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/easyant/plugins/trunk/xooki/src/main/resources/xooki.ant
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/easyant/skeletons/trunk/std-ant-plugin/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/skeletons/trunk/std-ant-plugin/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/skeletons/trunk/std-ant-plugin/module.ivy (added)
+++ incubator/easyant/skeletons/trunk/std-ant-plugin/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,25 @@
+<!--
+ Copyright 2008-2010 the EasyAnt project
+
+ See the NOTICE file distributed with this work for additional information
+ regarding copyright ownership.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+ <info organisation="org.apache.easyant.skeletons" module="std-ant-plugin"
+ status="integration" revision="0.1">
+ <description>Skeleton for creating ant based plugin for easyant</description>
+ <ea:build module="build-std-skeleton" revision="0.1"/>
+ </info>
+</ivy-module>
Propchange: incubator/easyant/skeletons/trunk/std-ant-plugin/module.ivy
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/easyant/skeletons/trunk/std-ant-plugin/module.ivy
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/easyant/skeletons/trunk/std-ant-plugin/module.ivy
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/easyant/skeletons/trunk/std-ant-plugin/src/main/resources/module.ivy.tpl
URL: http://svn.apache.org/viewvc/incubator/easyant/skeletons/trunk/std-ant-plugin/src/main/resources/module.ivy.tpl?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/skeletons/trunk/std-ant-plugin/src/main/resources/module.ivy.tpl (added)
+++ incubator/easyant/skeletons/trunk/std-ant-plugin/src/main/resources/module.ivy.tpl Thu Feb 17 17:01:07 2011
@@ -0,0 +1,32 @@
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+ <info organisation="@project.organisation@" module="@project.module@"
+ status="integration" revision="@project.revision@">
+ <!--
+ This easyant section is equivalent to having a module.ant like this:
+
+ <project name="@project.organisation@;@project.module@"
+ xmlns:ea="antlib:org.apache.easyant">
+
+ <ea:import organisation="org.apache.easyant.buildtypes" module="build-std-ant-plugin" revision="0.1"/>
+ </project>
+ -->
+ <!-- note that in a module.ivy the organisation attribute is not mandatory
+ if not specified easyant will use the default organisation for build type / plugin -->
+ <ea:build organisation="org.apache.easyant.buildtypes" module="build-std-ant-plugin" revision="0.1"/>
+ </info>
+ <configurations>
+ <conf name="default" visibility="public" description="runtime dependencies 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."/>
+ <conf name="provided" visibility="public" description="this is much like compile, but indicates you expect the JDK or a container to provide it. It is only available on the compilation classpath, and is not transitive."/>
+ </configurations>
+ <publications>
+ <artifact name="@project.module@" type="ant"/>
+ </publications>
+
+ <dependencies>
+ <!-- your project dependencies goes here -->
+ <!--
+ <dependency org="junit" name="junit" rev="4.4" conf="test->default" />
+ -->
+ </dependencies>
+</ivy-module>
Added: incubator/easyant/skeletons/trunk/std-ant-plugin/src/main/resources/skeleton.postinstall.ant.tpl
URL: http://svn.apache.org/viewvc/incubator/easyant/skeletons/trunk/std-ant-plugin/src/main/resources/skeleton.postinstall.ant.tpl?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/skeletons/trunk/std-ant-plugin/src/main/resources/skeleton.postinstall.ant.tpl (added)
+++ incubator/easyant/skeletons/trunk/std-ant-plugin/src/main/resources/skeleton.postinstall.ant.tpl Thu Feb 17 17:01:07 2011
@@ -0,0 +1,12 @@
+<project name="org.apache.easyant.plugins#skeleton-postinstall" default="doit">
+
+ <target name="doit">
+ <!-- rename the plugin skeleton -->
+ <move file="${basedir}/src/main/resources/temp-plugin.ant"
+ tofile="${basedir}/src/main/resources/@project.module@.ant"/>
+ <!-- rename the plugin testcase skeleton -->
+ <move file="${basedir}/src/test/antunit/temp-plugin-test.xml"
+ tofile="${basedir}/src/test/antunit/@project.module@-test.xml"/>
+ </target>
+
+</project>
Added: incubator/easyant/skeletons/trunk/std-ant-plugin/src/main/resources/src/main/resources/temp-plugin.ant.tpl
URL: http://svn.apache.org/viewvc/incubator/easyant/skeletons/trunk/std-ant-plugin/src/main/resources/src/main/resources/temp-plugin.ant.tpl?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/skeletons/trunk/std-ant-plugin/src/main/resources/src/main/resources/temp-plugin.ant.tpl (added)
+++ incubator/easyant/skeletons/trunk/std-ant-plugin/src/main/resources/src/main/resources/temp-plugin.ant.tpl Thu Feb 17 17:01:07 2011
@@ -0,0 +1,18 @@
+<project name="@project.organisation@;@project.module@"
+ xmlns:ivy="antlib:org.apache.ivy.ant"
+ xmlns:ea="antlib:org.apache.easyant">
+
+ <!--
+ Force compliance with easyant-core to 0.7 or higher
+ <ea:core-version requiredrevision="[0.7,+]" />
+ -->
+
+ <!-- Sample init target -->
+ <target name=":init" phase="validate">
+ <!-- you should remove this echo message -->
+ <echo level="debug">This is the init target of @project.module@</echo>
+ </target>
+
+ <!-- define a generic default target for this plugin -->
+ <target name="doit" depends="validate"/>
+</project>
Added: incubator/easyant/skeletons/trunk/std-ant-plugin/src/main/resources/src/test/antunit/temp-plugin-test.xml.tpl
URL: http://svn.apache.org/viewvc/incubator/easyant/skeletons/trunk/std-ant-plugin/src/main/resources/src/test/antunit/temp-plugin-test.xml.tpl?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/skeletons/trunk/std-ant-plugin/src/main/resources/src/test/antunit/temp-plugin-test.xml.tpl (added)
+++ incubator/easyant/skeletons/trunk/std-ant-plugin/src/main/resources/src/test/antunit/temp-plugin-test.xml.tpl Thu Feb 17 17:01:07 2011
@@ -0,0 +1,55 @@
+<!--
+ Copyright 2008-2009 the EasyAnt project
+
+ See the NOTICE file distributed with this work for additional information
+ regarding copyright ownership.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<project name="@project.organisation@;@project.module@-test" xmlns:au="antlib:org.apache.ant.antunit">
+
+ <!-- Mocking required phase -->
+ <phase name="validate"/>
+
+ <!-- Import your plugin -->
+ <import file="../../main/resources/@project.module@.ant"/>
+
+ <!-- Defines a setUp / tearDown (before each test) that cleans the environnement -->
+ <target name="clean" description="remove stale build artifacts before / after each test">
+ <delete dir="${basedir}" includeemptydirs="true">
+ <include name="**/target/**"/>
+ <include name="**/lib/**"/>
+ </delete>
+ </target>
+
+ <target name="setUp" depends="clean"/>
+ <target name="tearDown" depends="clean"/>
+
+ <!-- init test case -->
+ <target name="testInit">
+ <antcall target=":init"/>
+ <au:assertLogContains level="debug" text="This is the init target of @project.module@"/>
+ </target>
+
+ <!--
+ A sample ant unit test case,
+ see the antunit official documentation for more informations
+
+ <target name="testSample" description="a sample of ant unit test case">
+ <au:assertTrue>
+ <matches string="abc" pattern="abc"/>
+ </au:assertTrue>
+ </target>
+ -->
+
+</project>
\ No newline at end of file
Added: incubator/easyant/skeletons/trunk/std-java-application/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/skeletons/trunk/std-java-application/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/skeletons/trunk/std-java-application/module.ivy (added)
+++ incubator/easyant/skeletons/trunk/std-java-application/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,25 @@
+<!--
+ Copyright 2008-2010 the EasyAnt project
+
+ See the NOTICE file distributed with this work for additional information
+ regarding copyright ownership.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+ <info organisation="org.apache.easyant.skeletons" module="std-java-application"
+ status="integration" revision="0.1">
+ <description>Skeleton for creating standard java application</description>
+ <ea:build module="build-std-skeleton" revision="0.1"/>
+ </info>
+</ivy-module>
Propchange: incubator/easyant/skeletons/trunk/std-java-application/module.ivy
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/easyant/skeletons/trunk/std-java-application/module.ivy
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/easyant/skeletons/trunk/std-java-application/module.ivy
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/easyant/skeletons/trunk/std-java-application/src/main/resources/module.ivy.tpl
URL: http://svn.apache.org/viewvc/incubator/easyant/skeletons/trunk/std-java-application/src/main/resources/module.ivy.tpl?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/skeletons/trunk/std-java-application/src/main/resources/module.ivy.tpl (added)
+++ incubator/easyant/skeletons/trunk/std-java-application/src/main/resources/module.ivy.tpl Thu Feb 17 17:01:07 2011
@@ -0,0 +1,28 @@
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+ <info organisation="@project.organisation@" module="@project.module@"
+ status="integration" revision="@project.revision@">
+ <!--
+ This easyant section is equivalent to having a module.ant like this:
+
+ <project name="@project.organisation@;@project.module@"
+ xmlns:ea="antlib:org.apache.easyant">
+
+ <ea:import organisation="org.apache.easyant.buildtypes" module="build-std-java" revision="0.2"/>
+ </project>
+ -->
+ <!-- note that in a module.ivy the organisation attribute is not mandatory
+ if not specified easyant will use the default organisation for build type / plugin -->
+ <ea:build organisation="org.apache.easyant.buildtypes" module="build-std-java" revision="0.2"/>
+ </info>
+ <configurations>
+ <conf name="default" visibility="public" description="runtime dependencies 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."/>
+ <conf name="provided" visibility="public" description="this is much like compile, but indicates you expect the JDK or a container to provide it. It is only available on the compilation classpath, and is not transitive."/>
+ </configurations>
+ <dependencies>
+ <!-- your project dependencies goes here -->
+ <!--
+ <dependency org="junit" name="junit" rev="4.4" conf="test->default" />
+ -->
+ </dependencies>
+</ivy-module>
Added: incubator/easyant/skeletons/trunk/std-java-webapplication/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/skeletons/trunk/std-java-webapplication/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/skeletons/trunk/std-java-webapplication/module.ivy (added)
+++ incubator/easyant/skeletons/trunk/std-java-webapplication/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,25 @@
+<!--
+ Copyright 2008-2010 the EasyAnt project
+
+ See the NOTICE file distributed with this work for additional information
+ regarding copyright ownership.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+ <info organisation="org.apache.easyant.skeletons" module="std-java-webapplication"
+ status="integration" revision="0.1">
+ <description>Skeleton for creating standard java web application</description>
+ <ea:build module="build-std-skeleton" revision="0.1"/>
+ </info>
+</ivy-module>
Propchange: incubator/easyant/skeletons/trunk/std-java-webapplication/module.ivy
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/easyant/skeletons/trunk/std-java-webapplication/module.ivy
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/easyant/skeletons/trunk/std-java-webapplication/module.ivy
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/easyant/skeletons/trunk/std-java-webapplication/src/main/resources/module.ivy.tpl
URL: http://svn.apache.org/viewvc/incubator/easyant/skeletons/trunk/std-java-webapplication/src/main/resources/module.ivy.tpl?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/skeletons/trunk/std-java-webapplication/src/main/resources/module.ivy.tpl (added)
+++ incubator/easyant/skeletons/trunk/std-java-webapplication/src/main/resources/module.ivy.tpl Thu Feb 17 17:01:07 2011
@@ -0,0 +1,28 @@
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+ <info organisation="@project.organisation@" module="@project.module@"
+ status="integration" revision="@project.revision@">
+ <!--
+ This easyant section is equivalent to having a module.ant like this:
+
+ <project name="@project.organisation@;@project.module@"
+ xmlns:ea="antlib:org.apache.easyant">
+
+ <ea:import organisation="org.apache.easyant.buildtypes" module="build-webapp-java" revision="0.1"/>
+ </project>
+ -->
+ <!-- note that in a module.ivy the organisation attribute is not mandatory
+ if not specified easyant will use the default organisation for build type / plugin -->
+ <ea:build organisation="org.apache.easyant.buildtypes" module="build-webapp-java" revision="0.1"/>
+ </info>
+ <configurations>
+ <conf name="default" visibility="public" description="runtime dependencies 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."/>
+ <conf name="provided" visibility="public" description="this is much like compile, but indicates you expect the JDK or a container to provide it. It is only available on the compilation classpath, and is not transitive."/>
+ </configurations>
+ <dependencies>
+ <!-- your project dependencies goes here -->
+ <!--
+ <dependency org="junit" name="junit" rev="4.4" conf="test->default" />
+ -->
+ </dependencies>
+</ivy-module>
Added: incubator/easyant/skeletons/trunk/std-skeleton/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/skeletons/trunk/std-skeleton/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/skeletons/trunk/std-skeleton/module.ivy (added)
+++ incubator/easyant/skeletons/trunk/std-skeleton/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,25 @@
+<!--
+ Copyright 2008-2010 the EasyAnt project
+
+ See the NOTICE file distributed with this work for additional information
+ regarding copyright ownership.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+ <info organisation="org.apache.easyant.skeletons" module="std-skeleton"
+ status="integration" revision="0.1">
+ <description>Emtpy skeleton structure</description>
+ <ea:build module="build-std-skeleton" revision="0.1"/>
+ </info>
+</ivy-module>
Propchange: incubator/easyant/skeletons/trunk/std-skeleton/module.ivy
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/easyant/skeletons/trunk/std-skeleton/module.ivy
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/easyant/skeletons/trunk/std-skeleton/module.ivy
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/easyant/skeletons/trunk/std-skeleton/src/main/resources/module.ivy.tpl
URL: http://svn.apache.org/viewvc/incubator/easyant/skeletons/trunk/std-skeleton/src/main/resources/module.ivy.tpl?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/skeletons/trunk/std-skeleton/src/main/resources/module.ivy.tpl (added)
+++ incubator/easyant/skeletons/trunk/std-skeleton/src/main/resources/module.ivy.tpl Thu Feb 17 17:01:07 2011
@@ -0,0 +1,9 @@
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+ <info organisation="@project.organisation@" module="@project.module@"
+ status="integration" revision="@project.revision@">
+ <!--
+ <description>YOUR SKELETON DESCRIPTION GOES HERE</description>
+ -->
+ <ea:build module="build-std-skeleton" revision="0.1"/>
+ </info>
+</ivy-module>
Added: incubator/easyant/skeletons/trunk/std-skeleton/src/main/resources/skeleton.postinstall.ant.tpl
URL: http://svn.apache.org/viewvc/incubator/easyant/skeletons/trunk/std-skeleton/src/main/resources/skeleton.postinstall.ant.tpl?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/skeletons/trunk/std-skeleton/src/main/resources/skeleton.postinstall.ant.tpl (added)
+++ incubator/easyant/skeletons/trunk/std-skeleton/src/main/resources/skeleton.postinstall.ant.tpl Thu Feb 17 17:01:07 2011
@@ -0,0 +1,12 @@
+<project name="org.apache.easyant.plugins#skeleton-postinstall" default="doit">
+
+ <target name="doit">
+ <!-- rename the plugin skeleton -->
+ <move file="${basedir}/src/main/resources/module.ivy"
+ tofile="${basedir}/src/main/resources/module.ivy.tpl"/>
+ <!-- rename the plugin testcase skeleton -->
+ <move file="${basedir}/src/test/antunit/temp-plugin-test.xml"
+ tofile="${basedir}/src/test/antunit/@project.module@-test.xml"/>
+ </target>
+
+</project>
Added: incubator/easyant/skeletons/trunk/std-skeleton/src/main/resources/src/main/resources/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/skeletons/trunk/std-skeleton/src/main/resources/src/main/resources/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/skeletons/trunk/std-skeleton/src/main/resources/src/main/resources/module.ivy (added)
+++ incubator/easyant/skeletons/trunk/std-skeleton/src/main/resources/src/main/resources/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,9 @@
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+ <info organisation="@project.organisation@" module="@project.module@"
+ status="integration" revision="@project.revision@">
+ <!--
+ <description>YOUR SKELETON DESCRIPTION GOES HERE</description>
+ -->
+ <ea:build module="build-std-skeleton" revision="0.1"/>
+ </info>
+</ivy-module>
Propchange: incubator/easyant/skeletons/trunk/std-skeleton/src/main/resources/src/main/resources/module.ivy
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/easyant/skeletons/trunk/std-skeleton/src/main/resources/src/main/resources/module.ivy
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/easyant/skeletons/trunk/std-skeleton/src/main/resources/src/main/resources/module.ivy
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/easyant/skeletons/trunk/std-skeleton/src/main/resources/src/test/antunit/temp-plugin-test.xml.tpl
URL: http://svn.apache.org/viewvc/incubator/easyant/skeletons/trunk/std-skeleton/src/main/resources/src/test/antunit/temp-plugin-test.xml.tpl?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/skeletons/trunk/std-skeleton/src/main/resources/src/test/antunit/temp-plugin-test.xml.tpl (added)
+++ incubator/easyant/skeletons/trunk/std-skeleton/src/main/resources/src/test/antunit/temp-plugin-test.xml.tpl Thu Feb 17 17:01:07 2011
@@ -0,0 +1,43 @@
+<!--
+ Copyright 2008-2009 the EasyAnt project
+
+ See the NOTICE file distributed with this work for additional information
+ regarding copyright ownership.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<project name="@project.organisation@;@project.module@-test" xmlns:au="antlib:org.apache.ant.antunit">
+
+ <!-- Defines a setUp / tearDown (before each test) that cleans the environnement -->
+ <target name="clean" description="remove stale build artifacts before / after each test">
+ <delete dir="${basedir}" includeemptydirs="true">
+ <include name="**/target/**"/>
+ <include name="**/lib/**"/>
+ </delete>
+ </target>
+
+ <target name="setUp" depends="clean"/>
+ <target name="tearDown" depends="clean"/>
+
+ <!--
+ A sample ant unit test case,
+ see the antunit official documentation for more informations
+
+ <target name="testSample" description="a sample of ant unit test case">
+ <au:assertTrue>
+ <matches string="abc" pattern="abc"/>
+ </au:assertTrue>
+ </target>
+ -->
+
+</project>
Added: incubator/easyant/tasks/trunk/mavenivy-adapters/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/tasks/trunk/mavenivy-adapters/module.ivy?rev=1071697&view=auto
==============================================================================
--- incubator/easyant/tasks/trunk/mavenivy-adapters/module.ivy (added)
+++ incubator/easyant/tasks/trunk/mavenivy-adapters/module.ivy Thu Feb 17 17:01:07 2011
@@ -0,0 +1,26 @@
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
+ <info organisation="org.apache.easyant.tasks" module="mavenivy-adapters"
+ status="integration" revision="0.1">
+ <ea:build module="build-std-java" revision="0.2">
+ <ea:property name="project.ivy.instance" value="easyant.ivy.instance"/>
+ <ea:property name="release.resolver" value="easyant-shared-modules"/>
+ <ea:property name="shared.resolver" value="easyant-shared-modules"/>
+ <ea:property name="local.resolver" value="easyant-shared-modules"/>
+ </ea:build>
+ </info>
+ <configurations>
+ <conf name="default" visibility="public" description="runtime dependencies 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."/>
+ <conf name="provided" visibility="public" description="this is much like compile, but indicates you expect the JDK or a container to provide it. It is only available on the compilation classpath, and is not transitive."/>
+
+ </configurations>
+ <dependencies>
+ <dependency org="org.apache.maven" name="maven-ant-tasks" rev="2.1.0" conf="default->default">
+ <exclude org="ant" module="ant"/>
+ </dependency>
+ <dependency org="org.apache.ivy" name="ivy" rev="2.1.0" conf="provided->default"/>
+ <dependency org="junit" name="junit" rev="4.4" conf="test->default"/>
+ <dependency org="org.apache.ant" name="ant" rev="1.8.1" conf="provided->default"/>
+ <dependency org="org.apache.ant" name="ant-testutil" rev="1.8.1" conf="test->default" transitive="false" />
+ </dependencies>
+</ivy-module>
Propchange: incubator/easyant/tasks/trunk/mavenivy-adapters/module.ivy
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/easyant/tasks/trunk/mavenivy-adapters/module.ivy
------------------------------------------------------------------------------
svn:executable = *
Propchange: incubator/easyant/tasks/trunk/mavenivy-adapters/module.ivy
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/easyant/tasks/trunk/mavenivy-adapters/module.ivy
------------------------------------------------------------------------------
svn:mime-type = text/xml