Skip to content

Commit 6c80884

Browse files
committed
Updated build logic in pom.xml
1 parent 422ea61 commit 6c80884

File tree

1 file changed

+38
-22
lines changed

1 file changed

+38
-22
lines changed

pom.xml

+38-22
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<properties>
1010
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
11-
<maven.compiler.source>17</maven.compiler.source>
12-
<maven.compiler.target>17</maven.compiler.target>
11+
<maven.compiler.source>11</maven.compiler.source>
12+
<maven.compiler.target>11</maven.compiler.target>
1313
<!--<exec.mainClass>javaxt.demo.express.JavaxtExpressDemo</exec.mainClass>-->
1414

1515
<!-- Ant-style directory layout -->
@@ -144,33 +144,17 @@
144144
</goals>
145145
</execution>
146146

147-
<!--
148-
<execution>
149-
<id>download-webcontrols</id>
150-
<phase>install</phase>
151-
<configuration>
152-
<target>
153-
<get
154-
src="http://javaxt.com/webcontrols.js"
155-
dest="${project.basedir}/downloads/javaxt/javaxt-webcontrols.js"
156-
verbose="false"
157-
usetimestamp="true"
158-
skipexisting="true"
159-
/>
160-
</target>
161-
</configuration>
162-
<goals>
163-
<goal>run</goal>
164-
</goals>
165-
</execution>
166-
-->
167147

148+
<!-- Download JavaXT javascript releases -->
168149
<execution>
169150
<id>download-javaxt</id>
170151
<phase>install</phase>
171152
<configuration>
172153
<target>
173154

155+
<!-- Create downloads folder -->
156+
<mkdir dir="${project.basedir}/downloads/javaxt"/>
157+
174158
<!-- Download javaxt-webcontrols -->
175159
<get
176160
src="http://javaxt.com/webcontrols.js"
@@ -201,6 +185,13 @@
201185
/>
202186

203187

188+
<!-- Copy files to the auth demos -->
189+
<copy
190+
file="${project.basedir}/downloads/javaxt/javaxt-webcontrols.js"
191+
todir="${project.basedir}/demos/auth/basic/javascript/javaxt"
192+
/>
193+
194+
204195
</target>
205196
</configuration>
206197
<goals>
@@ -214,6 +205,31 @@
214205
</plugin>
215206

216207

208+
<!-- Delete downloaded files on clean -->
209+
<plugin>
210+
<artifactId>maven-clean-plugin</artifactId>
211+
<version>3.4.0</version>
212+
<executions>
213+
<execution>
214+
<id>delete-downloads</id>
215+
<phase>clean</phase>
216+
<goals>
217+
<goal>clean</goal>
218+
</goals>
219+
<configuration>
220+
<filesets>
221+
<fileset>
222+
<directory>${project.basedir}/downloads/javaxt</directory>
223+
</fileset>
224+
<fileset>
225+
<directory>${project.basedir}/demos/cms/Basic/javascript/javaxt</directory>
226+
</fileset>
227+
</filesets>
228+
</configuration>
229+
</execution>
230+
</executions>
231+
</plugin>
232+
217233
</plugins>
218234
</build>
219235

0 commit comments

Comments
 (0)