xref: /trunk/main/scripting/util/ant.pmk (revision 752c0af7)
1*e6b7d829SAndrew Rist#**************************************************************
2*e6b7d829SAndrew Rist#
3*e6b7d829SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*e6b7d829SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*e6b7d829SAndrew Rist#  distributed with this work for additional information
6*e6b7d829SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*e6b7d829SAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*e6b7d829SAndrew Rist#  "License"); you may not use this file except in compliance
9*e6b7d829SAndrew Rist#  with the License.  You may obtain a copy of the License at
10*e6b7d829SAndrew Rist#
11*e6b7d829SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*e6b7d829SAndrew Rist#
13*e6b7d829SAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*e6b7d829SAndrew Rist#  software distributed under the License is distributed on an
15*e6b7d829SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*e6b7d829SAndrew Rist#  KIND, either express or implied.  See the License for the
17*e6b7d829SAndrew Rist#  specific language governing permissions and limitations
18*e6b7d829SAndrew Rist#  under the License.
19*e6b7d829SAndrew Rist#
20*e6b7d829SAndrew Rist#**************************************************************
21*e6b7d829SAndrew Rist
22*e6b7d829SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirJARFILES*=../util/ant.jar
25cdf0e10cSrcweir
26cdf0e10cSrcweir# needs jdk1.2 !
27cdf0e10cSrcweirJAVAC_LIB:=$(JAVA_HOME)$/lib$/tools.jar
28cdf0e10cSrcweir
29cdf0e10cSrcweirSTARDEP=@echo ANTBuild
30cdf0e10cSrcweir
31cdf0e10cSrcweirOTHER=antbuild
32cdf0e10cSrcweirOTHERTARRGET=OTHERTARGET
33cdf0e10cSrcweirSOLARDOCDIR=$(SOLARVER)$/$(INPATH)$/doc$(EXT_UPDMINOR)
34cdf0e10cSrcweir
35cdf0e10cSrcweir
36cdf0e10cSrcweirANT=java -Xmx128m org.apache.tools.ant.Main
37cdf0e10cSrcweir.IF "$(ANT_BUILDFILE)" ==""
38cdf0e10cSrcweirANT_BUILDFILE=build.xml
39cdf0e10cSrcweir.ENDIF
40cdf0e10cSrcweirANTFLAGS!:=-Dprj=$(PRJ) -Dant.home=$(SOLARBINDIR)$/.. -Dsolar.doc=$(SOLARDOCDIR) -f $(ANT_BUILDFILE) $(ANTFLAGS) -Djardir=$(JARDIR) -Dsolar.jar=$(SOLARBINDIR) -Dout=$(OUT) -Dinpath=$(INPATH)
41cdf0e10cSrcweir
42cdf0e10cSrcweir.INCLUDE : ../util/target.pmk
43cdf0e10cSrcweir
44cdf0e10cSrcweirANT_CLASSPATH:=..$/util$/xerces.jar$(PATH_SEPERATOR)..$/util$/ant.jar$(PATH_SEPERATOR)..$/util$/junit.jar
45cdf0e10cSrcweirCLASSPATH!:=$(ANT_CLASSPATH)$(CLASSPATH)
46cdf0e10cSrcweir.EXPORT : CLASSPATH
47cdf0e10cSrcweir
48cdf0e10cSrcweirantbuild .PHONY:
49cdf0e10cSrcweir	$(ANT) $(ANTFLAGS)
50cdf0e10cSrcweir
51cdf0e10cSrcweir
52