blob: 184df7a55bee066e9da6756e1aa017f8a5a9a87b [file] [log] [blame]
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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 name="org.apache.easyant.plugins#easyant-plugin-publication" xmlns:ivy="antlib:org.apache.ivy.ant"
xmlns:ac="antlib:net.sf.antcontrib" xmlns:ea="antlib:org.apache.easyant">
<ea:core-version requiredrevision="[0.9,+]" />
<ea:plugin module="ivy-publication" revision="0.9" />
<ea:plugin module="abstract-test" revision="0.9" />
<ea:plugin module="abstract-provisioning" revision="0.9" />
<ea:parameter property="publish.plugin.before.test" description="defines if easyant should publish the plugin before running test" />
<ea:parameter property="target.artifacts" default="${target}/artifacts" description="destination directory for target artifacts" />
<!--
publish in build scoped repository before test
-->
<target name="easyant-plugin-publication:before-test" depends="abstract-provisioning:provisioning"
extensionOf="abstract-test:test-ready" if="publish.plugin.before.test">
<ea:configure-build-scoped-repository buildScopedRepositoryName="build"
settingsRef="easyant.ivy.instance" />
<ivy:publish artifactspattern="${target.artifacts}/[artifact](-[classifier]).[ext]" resolver="build"
forcedeliver="true" overwrite="true" settingsRef="easyant.ivy.instance" />
</target>
</project>