git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@116050 13f79535-47bb-0310-9956-ffa450edef68
86 lines
2.5 KiB
XML
86 lines
2.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
|
|
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: 46019 $ $Date: 2004/09/20 22:13:04 $ -->
|
|
|
|
<project default="default"
|
|
xmlns:ant="jelly:ant"
|
|
xmlns:j="jelly:core">
|
|
|
|
<!-- ================= -->
|
|
<!-- Global Properties -->
|
|
<!-- ================= -->
|
|
|
|
<!-- Determine what the top-level project root is -->
|
|
<j:set var="project.root" value="${pom.parentBasedir().getParentFile().getCanonicalFile()}"/>
|
|
|
|
<!-- Load the global properties -->
|
|
<ant:property file="${project.root}/etc/global.properties"/>
|
|
|
|
|
|
<!-- ==================== -->
|
|
<!-- Default Global Goals -->
|
|
<!-- ==================== -->
|
|
|
|
<goal name="default">
|
|
<attainGoal name="plugin:install"/>
|
|
</goal>
|
|
|
|
<goal name="build">
|
|
<attainGoal name="default"/>
|
|
</goal>
|
|
|
|
<goal name="rebuild">
|
|
<attainGoal name="clean"/>
|
|
<attainGoal name="build"/>
|
|
</goal>
|
|
|
|
<goal name="clover.wrapper">
|
|
<!-- no src/test, don't run clover -->
|
|
<!--attainGoal name="clover"/-->
|
|
</goal>
|
|
|
|
<!-- Remove the log files -->
|
|
<goal name="clobber"
|
|
description="Removes all (non-repository installed) build generated files">
|
|
|
|
<!-- Let clean:clean do some work first -->
|
|
<attainGoal name="clean:clean"/>
|
|
|
|
<j:jelly xmlns="jelly:ant">
|
|
<delete quiet="false" failonerror="false">
|
|
<fileset dir="${basedir}">
|
|
<include name="maven.log"/>
|
|
<include name="velocity.log*"/>
|
|
<include name="junit*.properties"/>
|
|
</fileset>
|
|
</delete>
|
|
</j:jelly>
|
|
</goal>
|
|
|
|
<goal name="java-src"
|
|
description="Creates an archive containing only java source.">
|
|
|
|
<ant:mkdir dir="${basedir}/target"/>
|
|
<ant:jar destfile="${basedir}/target/${pom.artifactId}-${pom.currentVersion}-java-src.jar">
|
|
<fileset dir="${basedir}/src/java"/>
|
|
</ant:jar>
|
|
</goal>
|
|
</project>
|