You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

launch-build.xml 1.8 kB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <project name="launch-build" default="launch">
  17. <description>
  18. Build file be able to launch the boostrap build of Ant on every supported platform
  19. </description>
  20. <property name="args" value="allclean test -Dignore.tests.failed=true -Doptional.jars.whenmanifestonly=skip" />
  21. <condition property="launch.cmd" value="${basedir}/build.sh">
  22. <os family="unix" />
  23. </condition>
  24. <condition property="launch.cmd" value="${basedir}/build.bat">
  25. <os family="windows" />
  26. </condition>
  27. <target name="launch">
  28. <fail unless="launch.cmd" message="Unsupported build platform" />
  29. <!-- by default no args, overridable on the Ant command line with -Dargs="" -->
  30. <property name="args" value="" />
  31. <echo message="Launching ${launch.cmd} ${args}" />
  32. <exec executable="${launch.cmd}" failonerror="true">
  33. <arg line="${args}" />
  34. </exec>
  35. </target>
  36. </project>