summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-07-22 11:33:01 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-07-22 11:33:01 +0000
commitbcd0a070dda7d130d703fe86d0efe5e526226e5f (patch)
tree91c00ab65afab445239d85fffac1405f4d40cad1 /java
parentef35ccbace3aad5cf173e7ef1822b812f67a3248 (diff)
Add script to allow the contributions to be reconfigured
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@796675 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--java/sca/otest/current/build.xml66
-rw-r--r--java/sca/otest/current/template-pom.xml67
2 files changed, 133 insertions, 0 deletions
diff --git a/java/sca/otest/current/build.xml b/java/sca/otest/current/build.xml
new file mode 100644
index 0000000000..6d4945e143
--- /dev/null
+++ b/java/sca/otest/current/build.xml
@@ -0,0 +1,66 @@
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<project name="copy-files-from-svn">
+ <target name="copyDir">
+ <copy todir="${to.dir}">
+ <fileset dir="${from.dir}"/>
+ </copy>
+ </target>
+
+ <target name="copyFile">
+ <copy file="${from.file}"
+ tofile="${to.file}"/>
+ </target>
+
+ <target name="fixUpContributions">
+ <antcall target="fixUpContribution"><param name="contrib" value="ASM_4003"/></antcall>
+ </target>
+
+ <target name="fixUpContribution">
+ <!-- create dir -->
+
+ <!-- create resources dir -->
+ <mkdir dir="${contrib}/src/main/resources"/>
+
+ <!-- copy in pom -->
+ <antcall target="copyTemplatePom">
+ <param name="from.file" value="./template-pom.xml"/>
+ <param name="to.file" value="${contrib}/pom.xml"/>
+ </antcall>
+
+ <!-- could use texen to set up the pom -->
+
+ <!-- clear resources dir - so that contrib structure can be checked in -->
+ <delete quiet="true" includeemptydirs="true">
+ <fileset dir="${contrib}/src/main/resources/*"/>
+ </delete>
+ </target>
+
+ <target name="copyTemplatePom">
+ <delete file="${to.file}" quiet="true"/>
+ <copy file="${from.file}"
+ tofile="${to.file}">
+ <filterchain>
+ <replacetokens>
+ <token key="ASM" value="${contrib}"/>
+ </replacetokens>
+ </filterchain>
+ </copy>
+ </target>
+</project>
diff --git a/java/sca/otest/current/template-pom.xml b/java/sca/otest/current/template-pom.xml
new file mode 100644
index 0000000000..2fce6ab216
--- /dev/null
+++ b/java/sca/otest/current/template-pom.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-otests</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+ <artifactId>@ASM@</artifactId>
+ <name>Apache Tuscany SCA Specification Tests @ASM@</name>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.3</version>
+
+ <dependencies>
+ <dependency>
+ <groupId>ant</groupId>
+ <artifactId>ant-trax</artifactId>
+ <version>1.6.5</version>
+ </dependency>
+ </dependencies>
+
+ <executions>
+ <execution>
+ <id>copy-files-from-svn</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <property name="from.dir" value="../src/main/resources/${artifactId}"/>
+ <property name="to.dir" value="src/main/resources"/>
+ <ant antfile="../build.xml">
+ <target name="copyDir"/>
+ </ant>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>