diff options
author | Artur Signell <artur@vaadin.com> | 2012-09-12 15:18:08 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-09-12 15:18:26 +0300 |
commit | 385cf06ce98c7028410e5c8c878fec9741740a35 (patch) | |
tree | 31d7f1bd76627cdeacd76063d11e02e35b551038 /client-compiler | |
parent | 6fc6ae8b4aa1b45f2b5c46f4e6c98574298e6472 (diff) | |
download | vaadin-framework-385cf06ce98c7028410e5c8c878fec9741740a35.tar.gz vaadin-framework-385cf06ce98c7028410e5c8c878fec9741740a35.zip |
Ugly hack for adding validation API dependency with source classifier (#9551)
Diffstat (limited to 'client-compiler')
-rw-r--r-- | client-compiler/build.xml | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/client-compiler/build.xml b/client-compiler/build.xml index 97645ea51c..cff8057274 100644 --- a/client-compiler/build.xml +++ b/client-compiler/build.xml @@ -25,10 +25,10 @@ <target name="jar"> <!-- Get Git revision --> <exec executable="git" outputproperty="git.revision" failifexecutionfails="false" errorproperty=""> - <arg value="describe"/> - <arg value="--tags"/> - <arg value="--always"/> - <arg value="HEAD"/> + <arg value="describe" /> + <arg value="--tags" /> + <arg value="--always" /> + <arg value="HEAD" /> </exec> <echo file="${result.dir}/com/google/gwt/dev/About.properties">gwt.version=${vaadin.version} @@ -37,6 +37,22 @@ gwt.svnrev=${git.revision}</echo> <antcall target="common.jar"> <reference refid="compiler.includes" torefid="extra.jar.includes" /> </antcall> + + <!-- Hack to add validation dependency with source classifier --> + <property name="pom.xml" location="${result.dir}/lib/${module.name}-${vaadin.version}.pom" /> + <copy file="${pom.xml}" tofile="${temp.pom}"> + <filterchain> + <replacestring from=" </dependencies>" to=" <dependency> + <groupId>javax.validation</groupId> + <artifactId>validation-api</artifactId> + <version>1.0.0.GA</version> + <scope>compile</scope> + <classifier>sources</classifier> + </dependency> + </dependencies>" /> + </filterchain> + </copy> + <move file="${temp.pom}" tofile="${pom.xml}" /> </target> <target name="publish-local" depends="jar"> |