You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2007/02/13 03:49:01 UTC
svn commit: r506827 - /geronimo/sandbox/build-support/harness/trunk/build.xml
Author: jdillon
Date: Mon Feb 12 18:49:01 2007
New Revision: 506827
URL: http://svn.apache.org/viewvc?view=rev&rev=506827
Log:
Add build to create the bootstrap harness image
Added:
geronimo/sandbox/build-support/harness/trunk/build.xml (with props)
Added: geronimo/sandbox/build-support/harness/trunk/build.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/harness/trunk/build.xml?view=auto&rev=506827
==============================================================================
--- geronimo/sandbox/build-support/harness/trunk/build.xml (added)
+++ geronimo/sandbox/build-support/harness/trunk/build.xml Mon Feb 12 18:49:01 2007
@@ -0,0 +1,82 @@
+<?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.
+-->
+
+<!-- $Id$ -->
+
+<project default="install" basedir="." xmlns:artifact="urn:maven-artifact-ant">
+
+ <property name="resources.dir" value="${basedir}/src/main/resources"/>
+ <property name="target.dir" value="${basedir}/target"/>
+ <property name="image.dir" value="${target.dir}/image"/>
+
+ <target name="init">
+ <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy">
+ <classpath>
+ <fileset dir="${resources.dir}">
+ <include name="lib/*.jar"/>
+ </fileset>
+ </classpath>
+ </taskdef>
+
+ <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant">
+ <classpath>
+ <fileset dir="${resources.dir}/tools/ant/lib">
+ <include name="maven-artifact-ant-*.jar"/>
+ </fileset>
+ </classpath>
+ </typedef>
+ </target>
+
+ <target name="install" depends="init">
+ <mkdir dir="${image.dir}"/>
+
+ <!-- Setup the base image -->
+ <copy todir="${image.dir}">
+ <fileset dir="${resources.dir}">
+ <include name="**"/>
+ </fileset>
+ </copy>
+
+ <!-- Include some external libs -->
+ <artifact:dependencies pathId="external.libs">
+ <!--
+ NOTE: Need to pull JFreeChart from the Maven repo so we can use it...
+ just can't put it into svn.apache.org due to LGPL crap.
+ -->
+ <dependency groupId="jfree" artifactId="jfreechart" version="1.0.3"/>
+ </artifact:dependencies>
+
+ <!-- Copy external libs to the image -->
+ <groovy>
+ def libDir = "${project.properties['image.dir']}/lib"
+ def libs = project.references['external.libs']
+ libs.list().each { filename ->
+ ant.copy(file: filename, todir: libDir)
+ }
+ </groovy>
+ </target>
+
+ <target name="clean" depends="init">
+ <delete dir="${target.dir}"/>
+ </target>
+
+ <target name="reinstall" depends="clean,install"/>
+
+</project>
Propchange: geronimo/sandbox/build-support/harness/trunk/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/sandbox/build-support/harness/trunk/build.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/sandbox/build-support/harness/trunk/build.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml