stubbed out maven-antrun-plugin and ant buildfile for doing s3 uploads
This commit is contained in:
24
pom.xml
24
pom.xml
@@ -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
27
src/ant/upload-dist.xml
Normal 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>
|
||||
Reference in New Issue
Block a user