|
14 | 14 |
|
15 | 15 | <!-- Default property values, if not overridden elsewhere: --> |
16 | 16 | <property name='build' location='build' /> |
17 | | - <property name='app.version' value='0.1.0'/> |
| 17 | + <property name='app.version' value='0.1.1'/> |
18 | 18 | <property name='app.name' value='JavaStockQuotes'/> |
19 | 19 | <property name='distro-name' value='java-stock-quotes-${app.version}'/> |
20 | 20 | <tstamp><format property='build.time' pattern='yyyy-MM-dd HH:mm:ss'/></tstamp> |
|
67 | 67 | </delete> |
68 | 68 | <mkdir dir="${build}/javadoc"/> |
69 | 69 | <mkdir dir="${build}/dist"/> |
70 | | - <mkdir dir="${build}/templates"/> |
| 70 | + <!--<mkdir dir="${build}/templates"/>--> |
71 | 71 | </target> |
72 | 72 |
|
73 | 73 | <target name='compile' description='Compile source files and place beside source.'> |
74 | | - <javac srcdir="src"> |
| 74 | + <javac srcdir="src" debug="true" debuglevel="lines,vars,source"> |
75 | 75 | <classpath refid='compile.classpath'/> |
76 | 76 | </javac> |
77 | 77 | <!-- Here's a simple way of debugging a path, fileset, or patternset, using its refid: --> |
|
120 | 120 | <header><![CDATA[<h1>${app.name} ${app.version}</h1>]]></header> |
121 | 121 | </javadoc> |
122 | 122 | </target> |
123 | | - |
124 | | - <target name='distro-binary' description='Create zip file with executable jar, docs.' depends='jar, javadoc'> |
| 123 | + |
| 124 | + <target name="copy-js" description="Copy JavaScript files for GenericFetcher"> |
| 125 | + <copy todir="${build}/dist/js/"> |
| 126 | + <fileset dir="js/"> |
| 127 | + <exclude name="finanzennet.js"/> |
| 128 | + </fileset> |
| 129 | + </copy> |
| 130 | + </target> |
| 131 | + |
| 132 | + <target name='distro-binary' description='Create zip file with executable jar, docs.' depends='jar, javadoc, copy-js'> |
125 | 133 | <zip destfile='${build}/dist/${distro-name}-binary.zip' duplicate='preserve'> |
126 | 134 | <zipfileset dir='${build}/dist/' includes='${distro-name}.jar'/> |
| 135 | + <zipfileset dir='${build}/dist/js' prefix='js' /> |
127 | 136 | <zipfileset dir='${build}/javadoc' prefix='javadoc' /> |
128 | | - <zipfileset dir='${build}/templates' includes='README.txt'/> |
| 137 | + <!--<zipfileset dir='${build}/templates' includes='README.txt'/>--> |
129 | 138 | </zip> |
130 | 139 | </target> |
131 | 140 |
|
|
137 | 146 | </target> |
138 | 147 |
|
139 | 148 | <target name='all' description='Create all build artifacts.' |
140 | | - depends='clean, compile, test, jar, javadoc, distro-binary, distro-source'> |
| 149 | + depends='clean, compile, test, jar, javadoc, copy-js, distro-binary, distro-source'> |
141 | 150 | <echo>Finished creating all build artifacts.</echo> |
142 | 151 | </target> |
143 | 152 |
|
|
0 commit comments