diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-12-17 10:05:48 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-12-17 10:05:48 +0000 |
commit | f8798271e3c29d943ef0884ed8926d8534af1a95 (patch) | |
tree | 31b6fa738c6620967802dd4ca04f3753b9529c3c | |
parent | 8386c7440702769be21a636758bc3de680956a51 (diff) |
Another Dojo download script change for the Hudson build
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@891618 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | sca-java-1.x/trunk/samples/simple-bigbank-spring/build-dojo.xml | 56 | ||||
-rw-r--r-- | sca-java-1.x/trunk/samples/simple-bigbank-spring/pom.xml | 85 |
2 files changed, 53 insertions, 88 deletions
diff --git a/sca-java-1.x/trunk/samples/simple-bigbank-spring/build-dojo.xml b/sca-java-1.x/trunk/samples/simple-bigbank-spring/build-dojo.xml index 9fedc9e7b4..5a715b1e6b 100644 --- a/sca-java-1.x/trunk/samples/simple-bigbank-spring/build-dojo.xml +++ b/sca-java-1.x/trunk/samples/simple-bigbank-spring/build-dojo.xml @@ -19,23 +19,16 @@ --> <project name="DojoZipInstaller"> - - <property name="dojo.version" value="1.3.0b3"/> - <property name="unpack.location" value="${basedir}/target/classes/content/dojo"/> + <property name="dojo.version" value="1.3.0"/> + <property name="dojo.zip" value="${localRepository}/org/dojotoolkit/dojo/${dojo.version}/dojo-${dojo.version}.zip"/> + <property name="unpack.location" value="${basedir}/src/main/resources/dojo"/> <target name="check-dojo-installed"> <condition property="already.installed" > - <available file="${localRepository}/dojo/dojo/${dojo.version}/dojo-${dojo.version}.zip"/> - </condition> - <condition property="maven.suffix" value=""> - <os family="unix"/> - </condition> - <condition property="maven.suffix" value=".bat"> - <os family="windows"/> + <available file="${localRepository}/org/dojotoolkit/dojo/${dojo.version}/dojo-${dojo.version}.zip"/> </condition> </target> - <target name="check-dojo-unpacked"> <condition property="already.unpacked" > @@ -43,50 +36,29 @@ </condition> </target> - <target name="install-dojo" depends="check-dojo-installed" unless="already.installed"> - <mkdir dir="${basedir}/target/dojo-download/"/> - <get src="http://download.dojotoolkit.org/release-${dojo.version}/dojo-release-${dojo.version}.zip" - dest="${basedir}/target/dojo-download/dojo-release-${dojo.version}.zip" - verbose="true" - usetimestamp="true"/> - <exec executable="mvn${maven.suffix}" dir="${basedir}" failonerror="false"> - <arg line="install:install-file -DgroupId=dojo -DartifactId=dojo -Dversion=${dojo.version} -Dpackaging=zip -DgeneratePom=true -Dfile=${basedir}/target/dojo-download/dojo-release-${dojo.version}.zip"/> - </exec> - </target> - - <target name="install-dojo-nomaven" depends="check-dojo-installed" unless="already.installed"> - <mkdir dir="${basedir}/target/dojo-download/"/> - <get src="http://download.dojotoolkit.org/release-${dojo.version}/dojo-release-${dojo.version}.zip" - dest="${basedir}/target/dojo-download/dojo-release-${dojo.version}.zip" - verbose="true" - usetimestamp="true"/> - <copy file="${basedir}/target/dojo-download/dojo-release-${dojo.version}.zip" - tofile="${localRepository}/dojo/dojo/${dojo.version}/dojo-${dojo.version}.zip"/> - </target> - - <target name="unpack-dojo-files" depends="check-dojo-installed, check-dojo-unpacked" unless="already.unpacked"> <fail message="dojo zip file not installed in local repository: ${localRepository}" unless="already.installed"/> <mkdir dir="${basedir}/target/dojo-unpack-temp/"/> - <unzip src="${localRepository}/dojo/dojo/${dojo.version}/dojo-${dojo.version}.zip" + <unzip src="${localRepository}/org/dojotoolkit/dojo/${dojo.version}/dojo-${dojo.version}.zip" dest="${basedir}/target/dojo-unpack-temp/" - overwrite="false"> + overwrite="false" + encoding="native-encoding"> <patternset> - <include name="dojo-release-${dojo.version}/dojo/**"/> - <exclude name="dojo-release-${dojo.version}/dojo/tests/**"/> - <include name="dojo-release-${dojo.version}/dijit/**"/> - <exclude name="dojo-release-${dojo.version}/dojox/**"/> - <exclude name="dojo-release-${dojo.version}/util/**"/> + <include name="dojo-${dojo.version}/dojo/**"/> + <exclude name="dojo-${dojo.version}/dojo/tests/**"/> + <exclude name="dojo-${dojo.version}/dijit/**"/> + <exclude name="dojo-${dojo.version}/dojox/**"/> + <exclude name="dojo-${dojo.version}/util/**"/> </patternset> </unzip> - <move file="${basedir}/target/dojo-unpack-temp/dojo-release-${dojo.version}" + <move file="${basedir}/target/dojo-unpack-temp/dojo-${dojo.version}" tofile="${unpack.location}" verbose="true"/> <delete dir="${basedir}/target/dojo-unpack-temp/"/> </target> - <target name="clean-dojo-files"> <delete dir="${unpack.location}"/> </target> + </project> diff --git a/sca-java-1.x/trunk/samples/simple-bigbank-spring/pom.xml b/sca-java-1.x/trunk/samples/simple-bigbank-spring/pom.xml index 6c136efa04..21e2728b4c 100644 --- a/sca-java-1.x/trunk/samples/simple-bigbank-spring/pom.xml +++ b/sca-java-1.x/trunk/samples/simple-bigbank-spring/pom.xml @@ -214,6 +214,13 @@ </dependency> <dependency> + <groupId>org.dojotoolkit</groupId> + <artifactId>dojo</artifactId> + <version>1.3.0</version> + <type>zip</type> + </dependency> + + <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.5</version> @@ -237,52 +244,38 @@ </dependency> </dependencies> - <executions> - <execution> - <id>install-dojo</id> - <phase>validate</phase> - <goals> - <goal>run</goal> - </goals> - <configuration> - <tasks> - <ant antfile="./build-dojo.xml" target="install-dojo"> - <property name="localRepository" value="${settings.localRepository}"/> - </ant> - </tasks> - </configuration> - </execution> - <execution> - <id>copy-dojo-files</id> - <phase>generate-resources</phase> - <goals> - <goal>run</goal> - </goals> - <configuration> - <tasks> - <ant antfile="./build-dojo.xml" target="unpack-dojo-files"> - <property name="localRepository" value="${settings.localRepository}"/> - <property name="artifactId" value="${artifactId}"/> - </ant> - </tasks> - </configuration> - </execution> - <execution> - <id>clean-dojo-files</id> - <phase>clean</phase> - <goals> - <goal>run</goal> - </goals> - <configuration> - <tasks> - <ant antfile="./build-dojo.xml" target="clean-dojo-files"> - <property name="localRepository" value="${settings.localRepository}"/> - <property name="artifactId" value="${artifactId}"/> - </ant> - </tasks> - </configuration> - </execution> - </executions> + <executions> + <execution> + <id>copy-dojo-files</id> + <phase>generate-resources</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <tasks> + <ant antfile="./build-dojo.xml" target="unpack-dojo-files"> + <property name="localRepository" value="${settings.localRepository}"/> + <property name="artifactId" value="${artifactId}"/> + </ant> + </tasks> + </configuration> + </execution> + <execution> + <id>clean-dojo-files</id> + <phase>clean</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <tasks> + <ant antfile="./build-dojo.xml" target="clean-dojo-files"> + <property name="localRepository" value="${settings.localRepository}"/> + <property name="artifactId" value="${artifactId}"/> + </ant> + </tasks> + </configuration> + </execution> + </executions> </plugin> </plugins> </build> |