2006-02-21 18:28:33 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
Copyright 2005-2006 The Apache Software Foundation
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
<project default="default" xmlns:j="jelly:core" xmlns:ant="jelly:ant">
|
|
|
|
|
|
|
|
<goal name="default">
|
|
|
|
<attainGoal name="jar:install"/>
|
|
|
|
</goal>
|
|
|
|
|
|
|
|
<preGoal name="test:test">
|
|
|
|
<j:choose>
|
|
|
|
<j:when test="${context.getVariable('os.name').startsWith('Windows')}">
|
|
|
|
<ant:copy todir=".">
|
|
|
|
<ant:fileset dir="${maven.repo.local}/ibmaio/libs/win32" includes="*.dll"/>
|
|
|
|
</ant:copy>
|
|
|
|
</j:when>
|
|
|
|
<j:when test="${context.getVariable('os.name').startsWith('Linux') and context.getVariable('os.version').startsWith('2.6.')}">
|
|
|
|
<ant:copy todir=".">
|
|
|
|
<ant:fileset dir="${maven.repo.local}/ibmaio/libs/linux32" includes="*.so"/>
|
|
|
|
</ant:copy>
|
|
|
|
<j:set var="maven.junit.jvmargs" value="${maven.junit.jvmargs} -Djava.library.path=."/>
|
|
|
|
</j:when>
|
|
|
|
<j:otherwise>
|
|
|
|
<echo>Diabling IBM AIO tests since your platform (${context.getVariable('os.name')} ${context.getVariable('os.version')}) is not recognized</echo>
|
|
|
|
<j:set var="maven.junit.jvmargs" value="${maven.junit.jvmargs} -Ddisable.aio.tests=true"/>
|
|
|
|
</j:otherwise>
|
|
|
|
</j:choose>
|
|
|
|
</preGoal>
|
|
|
|
|
|
|
|
</project>
|