<target name="fetch.module.and.dependencies">
<fail unless="module" message="No 'module' parameter given" />
- <antcontrib:if>
- <not>
- <equals arg1="${module}" arg2="all" />
- </not>
- <then>
- <ivy:cachepath pathid="module.and.deps" inline="true" organisation="com.vaadin" module="vaadin-${module}" revision="${vaadin.version}" />
- <copy todir="${temp.dir}" flatten="true">
- <path refid="module.and.deps" />
- </copy>
- </then>
- </antcontrib:if>
+ <ivy:cachepath pathid="module.and.deps" inline="true" organisation="com.vaadin" module="vaadin-${module}" revision="${vaadin.version}" />
+ <copy todir="${temp.dir}" flatten="true">
+ <path refid="module.and.deps" />
+ </copy>
</target>
<target name="zip">
<delete dir="${temp.dir}" />
- <antcontrib:foreach list="${modules.to.publish}" target="fetch.module.and.dependencies" param="module" />
+ <antcontrib:foreach list="${modules.to.publish.to.maven}" target="fetch.module.and.dependencies" param="module" />
<!-- All jars are now in temp.dir. Still need to separate vaadin and deps -->
<move todir="${temp.dir}/deps">
<fileset dir="${temp.dir}">
<dirname property="vaadin.basedir" file="${ant.file.common}" />
<property file="${vaadin.basedir}/build.properties" />
- <property name="modules.to.publish" value="shared,server,client,client-compiler,client-compiled,theme-compiler,themes-compiled,all" />
+ <property name="modules.to.publish.to.maven" value="shared,server,client,client-compiler,client-compiled,theme-compiler,themes-compiled" />
+ <property name="modules.to.publish.to.download" value="${modules.to.publish.to.maven},all" />
<ivy:resolve file="${vaadin.basedir}/build/ivy/ivy.xml" conf="taskdefs" />
<ivy:cachepath pathid="taskdefs.classpath" conf="taskdefs" />
</target>
<target name="nightly.download.publish">
- <antcontrib:foreach list="${modules.to.publish}" target="publish.module.to.download.site" param="module" />
+ <antcontrib:foreach list="${modules.to.publish.to.download}" target="publish.module.to.download.site" param="module" />
</target>
<target name="nightly.maven.publish">
- <antcontrib:foreach list="${modules.to.publish}" target="publish.module.to.maven" param="module" />
+ <antcontrib:foreach list="${modules.to.publish.to.maven}" target="publish.module.to.maven" param="module" />
</target>
<target name="publish.module.to.download.site">