blob: 6d4315942c235fb3df14f2ca6b8a9b07d92c6249 [file] [log] [blame]
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Copyright 2004 The Apache Software Foundation
Licensed 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.
-->
<!-- $Rev$ $Date$ -->
<project default="default"
xmlns:j="jelly:core"
xmlns:ant="jelly:ant"
>
<preGoal name="xdoc:jelly-transform">
<attainGoal name="html2xdoc"/>
</preGoal>
<postGoal name="java:compile">
<mkdir dir="${basedir}/target/classes/META-INF" />
<mkdir dir="${basedir}/target/classes/META-INF/schema" />
<copy todir="${basedir}/target/classes/META-INF/schema">
<fileset dir="${basedir}/src/schema/" includes="*.xsd" />
</copy>
<!-- generate the version properties file -->
<j:new var="now" className="java.util.Date"/>
<j:new var="dateFormat" className="java.text.SimpleDateFormat">
<j:arg type="java.lang.String" value="yyyy.MM.dd"/>
</j:new>
<j:new var="timeFormat" className="java.text.SimpleDateFormat">
<j:arg type="java.lang.String" value="HH:mm:ss.SSSZ"/>
</j:new>
<j:new var="yearFormat" className="java.text.SimpleDateFormat">
<j:arg type="java.lang.String" value="yyyy"/>
</j:new>
<ant:echo file="${basedir}/target/classes/org/apache/geronimo/system/serverinfo/geronimo-version.properties">##### Generated by Maven ####
version=${pom.currentVersion}
build.date=${dateFormat.format(now)}
build.time=${timeFormat.format(now)}
copyright=Copyright (C) 2003-${yearFormat.format(now)}, The Apache Software Foundation
</ant:echo>
<ant:echo file="${basedir}/target/classes/META-INF/product-versions.properties">##### Generated by Maven ####
geronimo=${geronimo_version}
activemq=${activemq_version}
openejb=${openejb_version}
tranql=${tranql_version}
</ant:echo>
</postGoal>
<!-- Set up the test files -->
<postGoal name="test:test-resources">
<j:jelly xmlns="jelly:ant">
<!-- Create the temporary directory where the configurations will reside -->
<delete dir="${maven.build.dir}/tmp"/>
<mkdir dir="${maven.build.dir}/tmp"/>
<mkdir dir="${maven.build.dir}/m1"/>
<mkdir dir="${maven.build.dir}/m2"/>
<copy todir="${maven.build.dir}/m1">
<fileset dir="${basedir}/src/test-repo/m1" /></copy>
<copy todir="${maven.build.dir}/m2">
<fileset dir="${basedir}/src/test-repo/m2" /></copy>
</j:jelly>
</postGoal>
</project>