stubbed out maven-antrun-plugin and ant buildfile for doing s3 uploads

This commit is contained in:
Chris Beams
2010-07-18 15:08:05 +02:00
parent 0e0e72d263
commit 2d70e64279
2 changed files with 51 additions and 0 deletions

24
pom.xml
View File

@@ -195,6 +195,30 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>upload-dist</id>
<phase>compile</phase> <!-- doing it during compile now, deploy later -->
<configuration>
<tasks>
<!--
<property name="compile_classpath" refid="maven.compile.classpath"/>
-->
<ant antfile="${basedir}/src/ant/upload-dist.xml">
<target name="upload-dist"/>
</ant>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>

27
src/ant/upload-dist.xml Normal file
View File

@@ -0,0 +1,27 @@
<?xml version="1.0"?>
<project name="bogus">
<!--
<taskdef name="myTask" resource="org/springframework/build/aws/ant/antlib.xml"
classname="com.acme.MyTask" classpathref="maven.plugin.classpath"/>
-->
<target name="upload-dist">
<echo message="Test from Ant"/>
<!--
<checksum file="${package.output.file}" algorithm="sha1"/>
<aws:s3 accessKey="${accessKey}" secretKey="${secretKey}">
<upload bucketName="dist.${bucket.basename}" file="${package.output.file}"
toFile="${adjusted.release.type}/${project.key}/${package.file.name}" publicRead="true">
<metadata name="project.name" value="${project.name}"/>
<metadata name="release.type" value="${release.type}"/>
<metadata name="bundle.version" value="${bundle.version}"/>
<metadata name="package.file.name" value="${package.file.name}"/>
</upload>
<upload bucketName="dist.${bucket.basename}" file="${package.output.file}.sha1"
toFile="${adjusted.release.type}/${project.key}/${package.file.name}.sha1" publicRead="true">
</upload>
</aws:s3>
-->
</target>
</project>