Changeset 12235


Ignore:
Timestamp:
10/30/09 12:45:42 (12 years ago)
Author:
Mark Evenson
Message:

Make default action of Ant build to clean then compile.

The former default action was the 'help' target. Now we invoke
'abcl.wrapper' which by default cleans intermediate files, and then
does the necessary steps to create an executable wrapper in either
'abcl' (UNIX) or 'abcl.in'.

To restore the incremental build behavior, set the
'abcl.incremental.build' property either on the command line via the
'-Dabcl.incremental.build=true' option or add the line

abcl.incremental.build=true

into a top-level file named 'build.properties'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/build.xml

    r12197 r12235  
    11<?xml version="1.0" encoding="UTF-8"?>
    22<project xmlns="antlib:org.apache.tools.ant"
    3    name="abcl-master" default="help" basedir=".">
     3   name="abcl-master" default="abcl.wrapper" basedir=".">
    44    <description>Compiling, testing, and packaging Armed Bear Common Lisp</description>
    55
     
    9191    </path>
    9292
    93     <target name="abcl.compile" depends="abcl.compile.lisp">
     93    <target name="abcl.compile" depends="abcl.clean.maybe,abcl.compile.lisp">
    9494      <echo>Compiled ABCL with Java version: ${java.version}</echo>
    9595    </target>
     96   
     97    <target name="abcl.clean.maybe" unless="abcl.build.incremental">
     98      <echo>Cleaning all intermediate compilation artifacts.</echo>
     99      <echo>Setting 'abcl.build.incremental' enables incremental compilation.</echo>
     100      <antcall target="abcl.clean"/>
     101    </target>
     102     
    96103
    97104    <target name="abcl.init">
Note: See TracChangeset for help on using the changeset viewer.