blob: 0be97351a08104fed0c077dd93e607e674e8e86f [file] [log] [blame]
<?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.
-->
<project name="forrestbot" basedir="." default="main">
<property environment="ENV"/>
<property name="forrest.root-dir" location="${ENV.FORREST_HOME}"/>
<property name="bot.home" location="${forrest.root-dir}/tools/forrestbot"/>
<import file="${forrest.root-dir}/main/forrest.build.xml"/>
<!-- include workstage implementations -->
<import file="${bot.home}/core/getsrc.xml"/>
<import file="${bot.home}/core/build.xml"/>
<import file="${bot.home}/core/deploy.xml"/>
<import file="${bot.home}/core/notify.xml"/>
<!-- default implmentations for each workstages -->
<target name="getsrc" depends="getsrc.clean-workdir, getsrc.cvs" description="FB: Get source via getsrc.cvs"/>
<target name="build" depends="build.forrest" description="FB: Build via `forrest site`"/>
<target name="deploy" depends="deploy.local" description="FB: Deploy via deploy.local"/>
<target name="notify" depends="notify.local" description="FB: Notify via notify.local"/>
<target name="clean">
<antcall target="forrest.clean" inheritAll="false">
<param name="project.home" value="${build.work-dir}"/>
<param name="project.build-dir" value="${build.work-dir}"/>
<param name="project.site-dir" value="${build.site-dir}"/>
</antcall>
</target>
<!-- run the workstages -->
<target name="main" depends="getsrc, build, deploy, notify" description="FB: getsrc, build, deploy, notify"/>
</project>