build.xml 1.63 KB
Newer Older
1 2 3 4
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="netbeans" name="php.editor">
    <description>Builds, tests, and runs the project org.netbeans.modules.php.editor</description>
    <import file="../nbbuild/templates/projectized.xml"/>
5

6
    <!-- for generationg lexer and parser, uncomment the tasks and set up the right classpath -->
7 8 9 10 11 12 13 14

<!--    <taskdef name="jflex"
        classname="JFlex.anttask.JFlexTask"
        classpath="/opt/jflex-1.6.0/lib/jflex-1.6.0.jar" />-->

<!--    <target name="gen-lexer" >
        <jflex file="tools/Php5ColoringScanner.flex"
        destdir="src"
15 16
        skel="tools/skeleton.netbeans"/>
    </target>-->
17 18 19

<!--    <target name="gen-astscanner" >
        <jflex file="tools/ASTPHP5Scanner.flex"
20 21 22
        destdir="src"
        skel="tools/skeletonParser.netbeans"/>
    </target>-->
23

24
    <!--<target name="gen-docscanner" >
25
        <jflex file="tools/DocumentorColoringScanner.flex"
26 27 28
        destdir="src"
        skel="tools/skeleton.netbeans"/>
    </target>-->
29 30


31 32 33 34 35 36 37 38 39 40
    <target name="gen-astparser">
    <taskdef name="javacup"
        classname="java_cup.anttask.CUPTask"
        classpath="${nb_all}/libs.javacup/external/java-cup-11a.jar" />
        <javacup srcfile="tools/ASTPHP5Parser.cup"
        destdir="src"
        parser="ASTPHP5Parser"
        symbols="ASTPHP5Symbols"
        interface="on"
       />
41 42 43 44
<!--        <taskdef name="parsercutter"
classname="cz.brejla.cup.parser.cutter.ParserCutter"
classpath="/home/ondrej/Dropbox/NetBeans/parser.cutter/dist/parser.cutter.jar" />
<parsercutter parserpath="src/org/netbeans/modules/php/editor/parser/ASTPHP5Parser.java" />-->
45 46 47 48
    </target>

</project>