Skip to content

Commit

Permalink
HV-680 Improved handling iof bv api version to allow for resolved SNP…
Browse files Browse the repository at this point in the history
…ASHOT dependecies
  • Loading branch information
hferentschik committed Jan 29, 2013
1 parent e5c008c commit 9056aac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@
<version>${jbossas.version}</version>
<type>zip</type>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}</outputDirectory>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</execution>
<execution>
Expand All @@ -175,9 +175,10 @@
<artifactId>validation-api</artifactId>
<version>${bv.api.version}</version>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/dependencies</outputDirectory>
</artifactItem>
</artifactItems>
<stripVersion>true</stripVersion>
<outputDirectory>${project.build.directory}/dependencies</outputDirectory>
</configuration>
</execution>
</executions>
Expand Down Expand Up @@ -212,13 +213,13 @@
ant.copy(todir: toDir, filtering: true) {
fileset(dir: fromDir)
filterset() {
filter(token:'BV-API-VERSION', value:project.properties['bv.api.version'])
filter(token:'BV-API-VERSION', value:project.properties['bv.api.version'])
}
}

def apiDependencyDir = new File(project.basedir, 'target/dependencies')
def apiTargetDir = new File(project.properties['jbossTargetDir'], 'modules/javax/validation/api/main')
log.info('Copying Bean Validation 1.1 jar from ' + apiDependencyDir + ' to ' + toDir)
log.info('Copying Bean Validation ' + project.properties['bv.api.version'] + ' jar from ' + apiDependencyDir + ' to ' + toDir)
ant.copy( todir: apiTargetDir) {
fileset(dir: apiDependencyDir)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
-->
<module xmlns="urn:jboss:module:1.1" name="javax.validation.api">
<resources>
<resource-root path="validation-api-@BV-API-VERSION@.jar"/>
<!-- Insert resources here -->
<!-- Used BV API version @BV-API-VERSION@ -->
<resource-root path="validation-api.jar"/>
</resources>

<dependencies>
Expand Down

0 comments on commit 9056aac

Please sign in to comment.