gecko-dev/js/rhino/toolsrc/build.xml
nboyd%atg.com 82fd57b5aa Hello !
I'm the maintainer of JPackage project rhino package (see
jpackage.sourceforge.net). I just found two problems for building it (version
1.52 from cvs):
- the property src.debugger is badly initialised in toolsrc/build.xml. See
patch attached for correction. Moreover, this was a real pain to make offline
building possible. I guess it's a licensing problem that prevents you
including those files in rhino sources ?
- the produced javadoc has an empty (0 sized) package-list file. Have you got
any idea why ?
-- Guillaume Rousse <rousse@ccr.jussieu.fr>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html
2001-12-06 14:26:26 +00:00

89 lines
3.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Build file for Rhino using Ant (see http://jakarta.apache.org/ant/index.html)
Requires Ant version 1.2
-->
<project name="toolsrc" default="build" basedir=".">
<target name="properties">
<property name="nest" value=".."/>
<property name="src.debugger"
value="org/mozilla/javascript/tools/debugger"/>
<available file="${src.debugger}/AbstractCellEditor.java"
property="swing-ex-available"/>
</target>
<target name="get-swing-ex" unless="swing-ex-available">
<!-- Download source from Sun's site, unzip it, remove
the files we don't need, and change the package
-->
<get src="http://java.sun.com/products/jfc/tsc/articles/treetable2/downloads/src.zip" dest="${nest}/${build.dir}/swingExSrc.zip"/>
<unzip src="${nest}/${build.dir}/swingExSrc.zip" dest="${src.debugger}"/>
<delete file="${src.debugger}/FileSystemModel2.java" />
<delete file="${src.debugger}/MergeSort.java" />
<delete file="${src.debugger}/TreeTableExample2.java" />
<replace file="${src.debugger}/AbstractCellEditor.java">
<replacetoken>import java.awt.Component;</replacetoken>
<replacevalue>
package org.mozilla.javascript.tools.debugger;
import java.awt.Component;
</replacevalue>
</replace>
<replace file="${src.debugger}/AbstractTreeTableModel.java">
<replacetoken>import javax.swing.tree.*;</replacetoken>
<replacevalue>
package org.mozilla.javascript.tools.debugger;
import javax.swing.tree.*;
</replacevalue>
</replace>
<replace file="${src.debugger}/JTreeTable.java">
<replacetoken>import javax.swing.*;</replacetoken>
<replacevalue>
package org.mozilla.javascript.tools.debugger;
import javax.swing.*;
</replacevalue>
</replace>
<replace file="${src.debugger}/TreeTableModel.java">
<replacetoken>import javax.swing.tree.TreeModel;</replacetoken>
<replacevalue>
package org.mozilla.javascript.tools.debugger;
import javax.swing.tree.TreeModel;
</replacevalue>
</replace>
<replace file="${src.debugger}/TreeTableModelAdapter.java">
<replacetoken>import javax.swing.JTree;</replacetoken>
<replacevalue>
package org.mozilla.javascript.tools.debugger;
import javax.swing.JTree;
</replacevalue>
</replace>
</target>
<target name="compile" depends="properties,get-swing-ex">
<javac srcdir="."
destdir="${nest}/${build.dest}"
includes="org/**/*.java"
deprecation="on"
debug="${debug}">
</javac>
</target>
<target name="copy-properties">
<copy todir="${nest}/${build.dest}">
<fileset dir="." includes="org/**/*.properties" />
</copy>
</target>
<target name="copy-source">
<copy todir="${nest}/${dist.toolsrc}">
<fileset dir="."
includes="org/**/*.java,org/**/*.properties,build.xml"
excludes="**/AbstractCellEditor.java,**/TreeTableModel.java,**/AbstractTreeTableModel.java,**/TreeTableModelAdapter.java,**/JTreeTable.java" />
</copy>
</target>
<target name="build" depends="compile,copy-properties,copy-source"/>
</project>