maxGraph/etc/build/build.xml

41 lines
1.2 KiB
XML

<?xml version="1.0"?>
<project basedir="." default="mxclient">
<taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask" classpath="compiler.jar"/>
<target name="mxclient">
<delete file=".tmp.js"/>
<java fork="false" classname="Preprocessor" classpath=".">
<arg value="../../javascript/src/js/mxClient.js"/>
<arg value="mxClient-debug.js"/>
</java>
<loadfile property="version" srcFile="../../VERSION"/>
<replace file="mxClient-debug.js" token="@MXGRAPH-VERSION@" value="${version}"/>
<jscomp compilationLevel="simple" debug="false" output="mxClient.js">
<sources dir=".">
<file name="mxClient-debug.js"/>
</sources>
</jscomp>
</target>
<target name="grapheditor" depends="mxclient">
<jscomp compilationLevel="simple" debug="false" output="grapheditor.min.js">
<sources dir=".">
<file name="mxClient.js"/>
</sources>
<sources dir="${basedir}/../../javascript/examples/grapheditor/www/js">
<file name="Editor.js"/>
<file name="Graph.js"/>
<file name="EditorUi.js"/>
<file name="Actions.js"/>
<file name="Menus.js"/>
<file name="Sidebar.js"/>
<file name="Toolbar.js"/>
<file name="Dialogs.js"/>
</sources>
</jscomp>
</target>
</project>