Attached patch adds support for nested <attach> elements for deploy and install, suitable for use like:
<target name="test-deploy-attached" depends="initTaskDefs">
<echo message="test" file="${basedir}/target/sample-build-test.pom.asc"/>
<artifact:deploy file="sample-build-test.pom">
<pom file="sample-build-test.pom" />
<remoteRepository refid="deploy.repository" />
<attach file="${basedir}/target/sample-build-test.pom.asc" type="pom.asc"/>
</artifact:deploy>
</target>
<target name="test-install-attached" depends="initTaskDefs">
<echo message="test" file="${basedir}/target/sample-build-test.pom.asc"/>
<artifact:install file="sample-build-test.pom">
<pom file="sample-build-test.pom" />
<localRepository refid="local.repository"/>
<attach file="${basedir}/target/sample-build-test.pom.asc" type="pom.asc"/>
</artifact:install>
</target>
Adds a InstallDeployTaskSupport class to hold common code, InstallTask and DeployTask extend from it.
Adds a AttachedArtifact class to hold the attached artifact details (file, type and classifier).
To get this to build I had to change the maven artifacts to use 2.0.6 (and build the maven-2.0.6 tag of the components tree).
I updated the sample.build.xml to add test-install-attached and test-deploy-attached targets to test with, as well as changed the layout of the deploy.repository to default.
Sorry, I tried to keep close the the current style, but its not easy to make my fingers add all that extra whitespace, so you prolly wanna reformat the new bits.
Attached patch adds support for nested <attach> elements for deploy and install, suitable for use like:
Adds a InstallDeployTaskSupport class to hold common code, InstallTask and DeployTask extend from it.
Adds a AttachedArtifact class to hold the attached artifact details (file, type and classifier).
To get this to build I had to change the maven artifacts to use 2.0.6 (and build the maven-2.0.6 tag of the components tree).
I updated the sample.build.xml to add test-install-attached and test-deploy-attached targets to test with, as well as changed the layout of the deploy.repository to default.
Sorry, I tried to keep close the the current style, but its not easy to make my fingers add all that extra whitespace, so you prolly wanna reformat the new bits.