-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild-public.xml
More file actions
63 lines (46 loc) · 2 KB
/
build-public.xml
File metadata and controls
63 lines (46 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0" encoding="utf-8" ?>
<project name="ChromeAddon" default="compile" basedir=".">
<!-- Arguments to gwtc and devmode targets -->
<property name="gwt.args" value="" />
<property name="web.module" location="web/module" />
<property file="local-build.properties" />
<property file="build.properties" />
<path id="project.class.path">
<pathelement location="${gwt.sdk}/gwt-user.jar" />
<fileset dir="${gwt.sdk}" includes="gwt-dev*.jar" />
</path>
<target name="gwtc" description="GWT compile to JavaScript">
<java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler">
<classpath>
<pathelement location="java" />
<path refid="project.class.path" />
</classpath>
<!-- add jvmarg -Xss16M or similar if you see a StackOverflowError -->
<jvmarg value="-Xmx256M" />
<arg line="-war ${web.module}" />
<!-- Additional arguments like -style PRETTY or -logLevel DEBUG -->
<arg line="${gwt.args}" />
<!--
<arg line="-style PRETTY"/>
<arg line="-extra temp/extra"/>
<arg line="-draftCompile"/>
-->
<arg value="com.broceliand.pearlbar.chrome.Popup" />
<arg value="com.broceliand.pearlbar.chrome.Background" />
</java>
</target>
<target name="compile" depends="gwtc" description="Compile for unpacked use" />
<target name="substitute" description="Substitute default strings">
<replaceregexp file="web/manifest.json" encoding="UTF-8"
match="/\*@version\*/.*/\*@/version\*/" flags="s"
replace=""${addon.version}"" />
<replace file="web/options.html" encoding="UTF-8" token="@@addon.version@@" value="${addon.version}" />
</target>
<target name="clean" description="Clean this project">
<delete dir="web/module" failonerror="false" />
</target>
<target name="package" depends="substitute, compile" description="Package this project">
<delete dir="${web.module}" includes="**/hosted.*" />
<zip destfile="Pearltrees-Chrome-Addon-${addon.version}.zip" basedir="web" />
</target>
</project>