You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by va...@apache.org on 2007/08/16 12:51:57 UTC

svn commit: r566653 - in /harmony/enhanced/buildtest/branches/2.0/adaptors/make-snapshot: ./ adaptor.xml parameters.xml

Author: varlax
Date: Thu Aug 16 03:51:56 2007
New Revision: 566653

URL: http://svn.apache.org/viewvc?view=rev&rev=566653
Log:
Adaptor for making snapshots

Added:
    harmony/enhanced/buildtest/branches/2.0/adaptors/make-snapshot/
    harmony/enhanced/buildtest/branches/2.0/adaptors/make-snapshot/adaptor.xml
    harmony/enhanced/buildtest/branches/2.0/adaptors/make-snapshot/parameters.xml

Added: harmony/enhanced/buildtest/branches/2.0/adaptors/make-snapshot/adaptor.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/make-snapshot/adaptor.xml?view=auto&rev=566653
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/make-snapshot/adaptor.xml (added)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/make-snapshot/adaptor.xml Thu Aug 16 03:51:56 2007
@@ -0,0 +1,77 @@
+<?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 name="make-snapshot" default="run" basedir=".">
+
+    <!-- initial setup of the HDK workspace -->
+    <target name="setup">
+        <mkdir dir="${trunk.dir}"/>
+        <echo message="Checkout HDK trunk into ${trunk.dir}"/>
+        <svn-co url="${svn.url}" trunk="${trunk.dir}"/>
+    </target>
+
+    <target name="run" depends="do-build,upload"/>
+
+    <target name="do-build">
+        <exec-ant dir="${trunk.dir}" targets="make-snapshot">
+            <jvmarg line="-Xmx1000M"/> 
+            <sysproperty key="target.dir" value="${target.dir}"/>
+            <sysproperty key="keep.working" value="true"/>
+            <sysproperty key="auto.fetch" value="true"/>
+            <sysproperty key="hy.cfg" value="${make-snapshot.parameters.optional.cfg}"/>
+        </exec-ant>
+        <chmod dir="${target.dir}" perm="ugo+rw" includes="*"/>
+        <condition property="do.upload">
+            <available file="${make-snapshot.parameters.optional.upload.dir}" type="dir"/>
+        </condition>
+    </target>
+
+    <target name="upload" if="do.upload">
+        <copy todir="${make-snapshot.parameters.optional.upload.dir}">
+            <fileset dir="${target.dir}" includes="*">
+                <type type="file"/>
+            </fileset>
+        </copy>
+    </target>
+
+    <target name="clean">
+        <exec-ant dir="${trunk.dir}" targets="clean">
+            <sysproperty key="hy.cfg" value="${hdk.hy.cfg}"/>
+        </exec-ant>
+    </target>
+
+    <!-- custom bootstrapper implementation -->
+    <target name="bootstrap" depends="-get-revision-file,-refresh-revision-file"/>
+
+    <target name="-get-revision-file">
+        <property name="tmp.file" location="${trunk.dir}/target.revision"/>
+        <touch file="${tmp.file}"/>
+        <get src="${target.revision.file}"
+             dest="${tmp.file}"
+             verbose="true" />
+        <condition property="skip.run">
+            <filesmatch file1="${trunk.dir}/release.properties" file2="${tmp.file}"/>
+        </condition>
+    </target>
+
+    <target name="-refresh-revision-file" unless="skip.run">
+        <move file="${tmp.file}" tofile="${trunk.dir}/release.properties"/>
+    </target>
+
+
+</project>
+

Added: harmony/enhanced/buildtest/branches/2.0/adaptors/make-snapshot/parameters.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/make-snapshot/parameters.xml?view=auto&rev=566653
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/make-snapshot/parameters.xml (added)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/make-snapshot/parameters.xml Thu Aug 16 03:51:56 2007
@@ -0,0 +1,42 @@
+<!-- 
+    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. -->
+
+<parameters>
+    <required>
+        <target.revision.file description="Property file defining svn.revision to build"/>
+    </required>
+
+    <optional>
+        <upload.dir description="Location to upload built artefacts to"/>
+        <cfg value="release" description="Release/debug configuration to build"/>        
+    </optional>
+
+    <shared>
+        <svn.url value="https://svn.apache.org/repos/asf/harmony/enhanced/trunk"/>
+        <trunk.dir location="${checkouts.dir}/${suite.name}" id="trunk.dir.id"/>
+        <target.dir 
+            description="Directory to store built HDK"
+            location="${results.dir}/${suite.name}" />
+        <jre location="${make-snapshot.parameters.shared.target.dir}/hdk/jdk/jre"/>
+        <jdk location="${make-snapshot.parameters.shared.target.dir}/hdk/jdk"/>
+        <svn.revision.file location="${make-snapshot.parameters.shared.trunk.dir}/release.properties"/>
+    </shared>
+
+    <cc trigger="${trunk.dir}/release.properties"
+        bootstrapper="${suite.adaptor.dir}/adaptor.xml"
+    />
+
+</parameters>