diff options
Diffstat (limited to 'build/ide.xml')
-rwxr-xr-x | build/ide.xml | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/build/ide.xml b/build/ide.xml index 68ed24a6a7..89b26a7e7b 100755 --- a/build/ide.xml +++ b/build/ide.xml @@ -180,9 +180,19 @@ </java> </target> <target name="vaadinPush.js" depends="resolve"> - <ant antfile="${basedir}/push/build.xml" target="vaadinPush.js" dir="${basedir}/push" /> + <property name="project.root" location="."/> + <ivy:resolve log="download-only" file="${project.root}/ivy-taskdefs.xml" conf="taskdefs" /> + <ivy:cachepath pathid="taskdefs.classpath" conf="taskdefs" /> + <!-- ant contrib for Maven integration --> + <taskdef resource="org/apache/maven/artifact/ant/antlib.xml" uri="antlib:org.apache.maven.artifact.ant" classpathref="taskdefs.classpath" /> + + <!-- Must fork to avoid ExitException --> + <artifact:mvn pom="${project.root}/push/pom.xml" fork="true" mavenVersion="3.0.4"> + <arg value="package"/> + </artifact:mvn> + <property name="js.output.dir" location="WebContent" /> - <property name="push.js.dir" location="${basedir}/push/result/js" /> + <property name="push.js.dir" location="${basedir}/push/target/classes/" /> <copy todir="${js.output.dir}"> <fileset dir="${push.js.dir}" includes="VAADIN/vaadinPush*" excludes="**/*.gz"> </fileset> |