ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject [1/2] git commit: add common submodule
Date Sat, 26 Jul 2014 05:50:08 GMT
Repository: ant-antlibs-dotnet
Updated Branches:
  refs/heads/master b43d47879 -> bc4fcf5c5


add common submodule


Project: http://git-wip-us.apache.org/repos/asf/ant-antlibs-dotnet/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-antlibs-dotnet/commit/afd9d85c
Tree: http://git-wip-us.apache.org/repos/asf/ant-antlibs-dotnet/tree/afd9d85c
Diff: http://git-wip-us.apache.org/repos/asf/ant-antlibs-dotnet/diff/afd9d85c

Branch: refs/heads/master
Commit: afd9d85c28b4d72f64ae4e45c73317ca91b603b5
Parents: 51f138b
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Sat Jul 26 07:47:47 2014 +0200
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Sat Jul 26 07:47:47 2014 +0200

----------------------------------------------------------------------
 .gitmodules |  3 +++
 common      |  1 +
 prepare.xml | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 69 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant-antlibs-dotnet/blob/afd9d85c/.gitmodules
----------------------------------------------------------------------
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..3ec196f
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "common"]
+	path = common
+	url = https://git-wip-us.apache.org/repos/asf/ant-antlibs-common.git

http://git-wip-us.apache.org/repos/asf/ant-antlibs-dotnet/blob/afd9d85c/common
----------------------------------------------------------------------
diff --git a/common b/common
new file mode 160000
index 0000000..51f7f81
--- /dev/null
+++ b/common
@@ -0,0 +1 @@
+Subproject commit 51f7f81979e31e6ca6d7711c16508a229e940e09

http://git-wip-us.apache.org/repos/asf/ant-antlibs-dotnet/blob/afd9d85c/prepare.xml
----------------------------------------------------------------------
diff --git a/prepare.xml b/prepare.xml
new file mode 100644
index 0000000..8499ea6
--- /dev/null
+++ b/prepare.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!--
+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.
+-->
+
+<!--
+Interim build-snippet.
+
+The original of this snippet is maintained in the antlib-common project. 
+-->
+<project default="bootstrap" xmlns:unless="ant:unless" xmlns:if="ant:if">
+
+  <!-- Which released version of AntUnit to use, where to download, where to store. -->
+  <property name="antunit.version" value="1.3"/>
+  <property name="antunit.url" value="http://repo1.maven.org/maven2/org/apache/ant/ant-antunit/${antunit.version}/ant-antunit-${antunit.version}.jar"/>
+  <property name="antunit.file" value="ant-antunit.jar"/>
+
+  <!-- Skip unnecessary tasks. -->
+  <available property="antunit.present" file="${antunit.file}"/>
+
+  <target name="update-prepare-script">
+    <echo>updating prepare.xml</echo>
+    <copy file="common/prepare.xml" tofile="prepare.xml"/>
+  </target>
+
+  <target name="get-antunit" unless="antunit.present">
+    <echo>updating AntUnit</echo>
+    <get src="${antunit.url}" dest="${antunit.file}" usetimestamp="true"/>
+  </target>
+  
+  
+  <!-- Use a 'bootstrap-phase' so changes of the preparation could be catched in the same
CI-cycle. -->
+  <target name="bootstrap" 
+          depends="update-prepare-script"
+          description="Bootstraps the preparation script by updating this script from common."
+  >
+    <echo>Bootstrap done. Next step:</echo> 
+    <echo>  ant -f prepare.xml prepare</echo>
+  </target>
+          
+  <target name="prepare" 
+          depends="get-antunit"
+          description="Prepare the build by 'preparing' the infrastructure"
+  >
+    <echo>Preparation done. Next steps:</echo>
+    <echo> ant clean distribution</echo>
+    <echo> ant -lib ${antunit.file} -lib build/lib test</echo>
+  </target>
+
+</project>


Mime
View raw message