Revision: 5784
http://squirrel-sql.svn.sourceforge.net/squirrel-sql/?rev=5784&view=rev
Author: manningr
Date: 2010-08-10 21:26:11 +0000 (Tue, 10 Aug 2010)
Log Message:
-----------
Upload source archive to SF if uploadInstallers property is set.
Modified Paths:
--------------
trunk/sql12/installer/squirrelsql-source/pom.xml
Added Paths:
-----------
trunk/sql12/installer/squirrelsql-source/src/main/resources/batch.txt
Modified: trunk/sql12/installer/squirrelsql-source/pom.xml
===================================================================
--- trunk/sql12/installer/squirrelsql-source/pom.xml 2010-08-10 12:00:16 UTC (rev 5783)
+++ trunk/sql12/installer/squirrelsql-source/pom.xml 2010-08-10 21:26:11 UTC (rev 5784)
@@ -1,15 +1,18 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <artifactId>installer</artifactId>
- <groupId>net.sf.squirrel-sql</groupId>
- <version>3.2.0-SNAPSHOT</version>
- </parent>
- <groupId>net.sf.squirrel-sql</groupId>
- <artifactId>squirrelsql-source</artifactId>
- <version>3.2.0-SNAPSHOT</version>
- <name>SQuirreL SQL Client Source Archive (Aggregate)</name>
- <description>
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>installer</artifactId>
+ <groupId>net.sf.squirrel-sql</groupId>
+ <version>3.2.0-SNAPSHOT</version>
+ </parent>
+ <groupId>net.sf.squirrel-sql</groupId>
+ <artifactId>squirrelsql-source</artifactId>
+ <version>3.2.0-SNAPSHOT</version>
+ <name>SQuirreL SQL Client Source Archive (Aggregate)</name>
+ <description>
This is a project to create a single source archive of the entire source tree as a
convenience for those who cannot access Maven Central
</description>
@@ -51,47 +54,79 @@
<system>Hudson</system>
<url>https://www.squirrel-sql.org/hudson/</url>
</ciManagement>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-scm-plugin</artifactId>
- <version>1.4</version>
- <executions>
- <execution>
- <configuration>
- <baseDir>sql12</baseDir>
- <exportDirectory>target/sources</exportDirectory>
- </configuration>
- <goals>
- <goal>export</goal>
- </goals>
- <phase>generate-sources</phase>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>${assembly-plugin-version}</version>
- <executions>
- <execution>
- <id>create-source-archive</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <descriptors>
- <descriptor>src/main/resources/assemblies/source-assembly.xml</descriptor>
- </descriptors>
- <finalName>squirrel-sql-source</finalName>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
-
- </build>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-scm-plugin</artifactId>
+ <version>1.4</version>
+ <executions>
+ <execution>
+ <configuration>
+ <baseDir>sql12</baseDir>
+ <exportDirectory>target/sources</exportDirectory>
+ </configuration>
+ <goals>
+ <goal>export</goal>
+ </goals>
+ <phase>generate-sources</phase>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>${assembly-plugin-version}</version>
+ <executions>
+ <execution>
+ <id>create-source-archive</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <descriptors>
+ <descriptor>src/main/resources/assemblies/source-assembly.xml</descriptor>
+ </descriptors>
+ <finalName>squirrel-sql-source</finalName>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <profiles>
+ <profile>
+ <activation>
+ <property>
+ <name>uploadInstallers</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2</version>
+ <executions>
+ <execution>
+ <configuration>
+ <executable>sftp</executable>
+ <arguments>
+ <argument>-b</argument>
+ <argument>target/classes/batch.txt</argument>
+ <argument>${file.release.server}</argument>
+ </arguments>
+ </configuration>
+ <phase>deploy</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>
\ No newline at end of file
Added: trunk/sql12/installer/squirrelsql-source/src/main/resources/batch.txt
===================================================================
--- trunk/sql12/installer/squirrelsql-source/src/main/resources/batch.txt (rev 0)
+++ trunk/sql12/installer/squirrelsql-source/src/main/resources/batch.txt 2010-08-10 21:26:11 UTC (rev 5784)
@@ -0,0 +1,4 @@
+cd ${file.release.path}
+mkdir ${squirrelsql.version}
+cd ${squirrelsql.version}
+put target/squirrel-sql-source.zip ${upload-server-path}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|