-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
117 lines (96 loc) · 4.36 KB
/
build.xml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<project name="Pentaho BIRT Plugin" basedir="." default="default" xmlns:ivy="antlib:org.apache.ivy.ant">
<property file="${user.home}/.pentaho-birt-reporting-build-settings.properties"
description="Per user override settings-file for all birt-reporting projects." />
<!-- Import the common_build.xml file which contains all the default tasks -->
<import file="./build-res/subfloor-pkg.xml" />
<import file="./build-res/subfloor-js.xml" />
<property name="install.lib-dir"
value="${install.target-dir}/tomcat/webapps/pentaho/WEB-INF/lib/"/>
<!--
AS STATED ABOVE, THE ONLY TASKS THAT SHOULD EXIST IN THIS BUILD FILE ARE
THE TASKS THAT NEED TO DIFFER FROM THE DEFAULT IMPLEMENTATION OF THE TASKS
FOUND IN common_build.xml.
-->
<target name="resolve" depends="resolve-runtime,subfloor.resolve,subfloor-js.resolve-js"/>
<target name="stage-js-build">
<!-- Remove the scripts/ directory that subfloor-js staged -->
<!--<delete dir="${approot.stage.dir}/scripts"/>-->
</target>
<!--<target name="publish-local-nojar" depends="subfloor-js.js.publish-local-nojar"/>-->
<!-- override the subfloor assemble target to do special assembly from the war directory -->
<target name="assemble" depends="compile,assemble.init,build-js,package-js-output">
<!--copy todir="${approot.stage.dir}/lib">
<fileset dir="${lib.dir}" excludes="pentaho-bi-platform-*.jar" />
<fileset file="${dist.dir}/${ivy.artifact.id}-${project.revision}.jar" />
<fileset file="${lib.dir}/gwt-user*.jar" />
</copy-->
<copy todir="${approot.stage.dir}">
<fileset dir="${package.resdir}" />
</copy>
<!-- Copy the js build output -->
<copy todir="${approot.stage.dir}/reportviewer/compressed" overwrite="true">
<!-- Remove top-level directory when copying -->
<flattenmapper/>
<fileset dir="${js.build.output.dir}">
<!-- Entire application -->
<include name="reportviewer/reportviewer-app.js"/>
<!-- Core for use by other apps-->
<include name="reportviewer/reportviewer-main-module.js"/>
<include name="reportviewer/formatter.js"/>
</fileset>
</copy>
</target>
<target name="install">
<deltree dir="${install.target-dir}/pentaho-solutions/system/birt-reporting-plugin/reportviewer"/>
<delete failonerror="false" file="${install.target-dir}/pentaho-solutions/system/birt-reporting-plugin/plugin.xml"/>
<delete failonerror="false" file="${install.target-dir}/pentaho-solutions/system/birt-reporting-plugin/settings.xml"/>
<copydir src="package-res" dest="${install.target-dir}/pentaho-solutions/system/birt-reporting-plugin"/>
<copy failonerror="true" todir="${install.lib-dir}" file="${dist.dir}/${ivy.artifact.id}-${project.revision}.jar"/>
</target>
<target name="dist-source" depends="dist-js, subfloor.dist-source"/>
<target name="publish-nojar" depends="subfloor-js.js.publish-nojar, subfloor-pkg.publish-nojar"/>
<!--
<import file="./build-res/subfloor-js.xml" />
<property file="build.properties" />
<echo message="deploy dest: ${deploy.dest} " />
<property name="install.lib-dir" value="${install.target-dir}/tomcat/webapps/pentaho/WEB-INF/lib/"/>
<path id="master-classpath">
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="clean" >
<delete dir="build" />
<delete dir="dist" />
</target>
<target name="init" depends="clean">
<mkdir dir="build/classes" />
<mkdir dir="dist" />
</target>
<target name="compile" depends="init">
<javac destdir="build/classes" includeantruntime="false" debug="on">
<src path="src"/>
<!** classpath refid="master-classpath"/ **>
<classpath>
<!** <fileset dir="${birt.reportengine.dir}/lib" /> **>
<fileset dir="${deploy.dest}/tomcat/webapps/pentaho/WEB-INF/lib" />
<fileset dir="${deploy.dest}/tomcat/lib" />
<!** athelement location="${deploy.dest}/tomcat/webapps/pentaho/WEB-INF/lib/commons-logging-1.1.1.jar" / **>
</classpath>
</javac>
</target>
<target name="compress" depends="compile" >
<jar destfile="dist/birt-plugin/lib/birt-plugin.jar" basedir="build/classes" />
</target>
<target name="package" depends="compile,compress">
<copy todir="dist/birt-plugin" >
<fileset dir="package-res" />
</copy>
</target>
<target name="deploy" depends="package" >
<copy todir="${deploy.dest}/pentaho-solutions/system" >
<fileset dir="dist" />
</copy>
</target>
-->
</project>