buildscript_unchanged.xml 2.77 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
Markus Bauer's avatar
Markus Bauer committed
2
3
4
5
6
<!--
  ===== HOW TO BUILD =====
  - Make a copy of this buildscript, name it "buildscript.xml"
  - Adjust the path to your AspectJ runtime (C:/Program Files (x86)/eclipse/...)
  - Run it!
7
8
9
  
  Maybe you have to add the bcel.jar to your Ant runtime. 
  In eclipse, go to Window->Preferences->Ant->Runtime, and add the jar from the "becl-5.2" folder of this project.
Markus Bauer's avatar
Markus Bauer committed
10
11
-->

12
<project default="make" name="Create jar and release zip for PseucoIDE">
13
    <!--ANT 1.7 is required                                        -->
Markus Bauer's avatar
Markus Bauer committed
14
15
16
17
    
    <target name="create_jar">
        <delete file="./release/pseuCoCo-runnable.jar"/>
        <delete file="./release/PseucoIDE.jar"/>
Markus Bauer's avatar
Markus Bauer committed
18
        <jar destfile="./release/PseucoIDE.jar" filesetmanifest="mergewithoutmain">
19
            <manifest>
Markus's avatar
Markus committed
20
                <attribute name="Main-Class" value="start.Start"/>
21
22
                <attribute name="Class-Path" value="."/>
            </manifest>
Markus Bauer's avatar
Markus Bauer committed
23
24
25
26
27
28
29
            <fileset dir="./bin">
                <include name="**/*"/>  
                <exclude name="/debug/**"/>
                <exclude name="/junit/**"/>
                <exclude name="/org/junit/**"/>
                <exclude name="/tests/**"/>
            </fileset>
Hering's avatar
Hering committed
30
            <zipfileset excludes="META-INF/*.SF" src="./jsyntaxpane-0.9.6.jar"/>
Markus Bauer's avatar
Markus Bauer committed
31
            <zipfileset excludes="META-INF/*.SF" src="C:/Program Files (x86)/eclipse/plugins/org.aspectj.runtime_1.7.3.20130613144500-a.jar"/>
32
33
        </jar>
    </target>
Markus Bauer's avatar
Markus Bauer committed
34
35
36
37
38
39
40
41
42
43
    
    <target name="create_zip">
        <delete dir="./release/projects" />
        <copy todir="./release/projects">
            <fileset dir="./projects">
                <include name="exampleCount_1.pseuco" />
                <include name="exampleCount_2.pseuco" />
                <include name="example_Fakultaet.pseuco" />
            </fileset>
        </copy>
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
        
        <!-- Get the current version -->
        <loadproperties encoding="iso-8859-1" srcfile="./bin/start/Start.class">
            <filterchain>
                <classconstants/>
            </filterchain>
        </loadproperties>
        <loadresource property="versionF">
            <propertyresource name="version" />
            <filterchain>
                <tokenfilter>
                    <filetokenizer />
                    <replacestring from=" " to="_" />
                </tokenfilter>
            </filterchain>
        </loadresource>
        
        <zip destfile="./release/PseucoIDE_${versionF}.zip">
Markus Bauer's avatar
Markus Bauer committed
62
63
64
65
66
67
68
69
70
71
72
            <fileset dir="./release">
                <include name="PseucoIDE.jar" />
                <include name="projects/*.pseuco" />
            </fileset>
        </zip>
    </target>
    
    <target name="make">
        <antcall target="create_jar" />
        <antcall target="create_zip" />
    </target>
73
</project>