mirror of https://github.com/apache/ant-ivy
IMPROVEMENT: Remove use of deprecated elements in ivysettings.xml (IVY-505) (with contribution from Jan Materne)
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@540318 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b7f625aea3
commit
f5805ce9b7
14
.classpath
14
.classpath
|
|
@ -1,14 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src/java"/>
|
||||
<classpathentry kind="src" path="test/java"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.jayasoft.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/ivy.xml/default,"/>
|
||||
<classpathentry sourcepath="ECLIPSE_HOME/plugins/org.eclipse.jdt.source_3.0.0/src/org.junit_3.8.1/junitsrc.zip" kind="var" path="JUNIT_HOME/junit.jar"/>
|
||||
<classpathentry sourcepath="/ANT_HOME/src/main" kind="var" path="ANT_HOME/lib/ant.jar"/>
|
||||
<classpathentry kind="var" path="ANT_HOME/lib/ant-launcher.jar"/>
|
||||
<classpathentry kind="var" path="ANT_HOME/lib/xercesImpl.jar"/>
|
||||
<classpathentry kind="var" path="ANT_HOME/lib/ant-trax.jar"/>
|
||||
<classpathentry kind="var" path="ANT_HOME/lib/xml-apis.jar"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src/java"/>
|
||||
<classpathentry kind="src" path="test/java"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="lib" path="lib/ant-launcher.jar"/>
|
||||
<classpathentry kind="lib" path="lib/ant.jar"/>
|
||||
<classpathentry kind="lib" path="lib/commons-cli.jar"/>
|
||||
<classpathentry kind="lib" path="lib/commons-codec.jar"/>
|
||||
<classpathentry kind="lib" path="lib/commons-httpclient.jar"/>
|
||||
<classpathentry kind="lib" path="lib/commons-lang.jar"/>
|
||||
<classpathentry kind="lib" path="lib/commons-logging.jar"/>
|
||||
<classpathentry kind="lib" path="lib/commons-vfs.jar"/>
|
||||
<classpathentry kind="lib" path="lib/jdom.jar"/>
|
||||
<classpathentry kind="lib" path="lib/jsch.jar"/>
|
||||
<classpathentry kind="lib" path="lib/junit.jar"/>
|
||||
<classpathentry kind="lib" path="lib/oro.jar"/>
|
||||
<classpathentry kind="lib" path="lib/slide-webdavlib.jar"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src/java"/>
|
||||
<classpathentry kind="src" path="test/java"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/ivy.xml/*"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
|
@ -27,6 +27,7 @@ for detailed view of each issue, please consult http://issues.apache.org/jira/br
|
|||
Costin Leau
|
||||
Antoine Levy-Lambert
|
||||
William Lyvers
|
||||
Jan Materne
|
||||
Stephen Nesbitt
|
||||
Joshua Nichols
|
||||
Bernard Niset
|
||||
|
|
@ -51,6 +52,7 @@ for detailed view of each issue, please consult http://issues.apache.org/jira/br
|
|||
|
||||
- IMPROVEMENT: Allow "main" parameters to be passed directly (instead of using -args flag) (IVY-480) (thanks to Archie Cobbs)
|
||||
- IMPROVEMENT: Remove @author tags (thanks to Stephane Bailliez)
|
||||
- IMPROVEMENT: Remove use of deprecated elements in ivysettings.xml (IVY-505) (with contribution from Jan Materne)
|
||||
|
||||
- FIX: ${revision} property not recognized in poms (IVY-512)
|
||||
- FIX: Bug on handling dependency artifacts when a module configuration is specified (IVY-507)
|
||||
|
|
|
|||
26
build.xml
26
build.xml
|
|
@ -147,7 +147,7 @@
|
|||
DEPENDENCY MNGT, COMPILATION AND JAR
|
||||
================================================================= -->
|
||||
<target name="resolve" depends="init-ivy" unless="no.resolve">
|
||||
<ivy:retrieve conf="default,test" />
|
||||
<ivy:retrieve conf="default,test" pattern="${lib.dir}/[artifact].[ext]"/>
|
||||
</target>
|
||||
|
||||
<target name="compile-core" depends="prepare">
|
||||
|
|
@ -433,4 +433,28 @@
|
|||
</apply>
|
||||
-->
|
||||
</target>
|
||||
|
||||
<!-- =================================================================
|
||||
IDE SPECIFIC
|
||||
================================================================= -->
|
||||
<available file="${basedir}/.classpath" property="eclipse.classpath.exists"/>
|
||||
<target name="check-eclipse-classpath-overwrite" if="eclipse.classpath.exists">
|
||||
<input message=".classpath file already exists.${line.separator}Are you sure you want to overwrite it and loose your original file?"
|
||||
validargs="Y,N,y,n" addproperty="eclipse.classpath.confirm"/>
|
||||
<condition property="eclipse.classpath.abort">
|
||||
<equals arg1="${eclipse.classpath.confirm}" arg2="N" casesensitive="false"/>
|
||||
</condition>
|
||||
</target>
|
||||
|
||||
<target name="eclipse-default" depends="resolve, check-eclipse-classpath-overwrite"
|
||||
unless="eclipse.classpath.abort"
|
||||
description="--> creates a default .classpath for eclipse, using jars resolved by this ant build">
|
||||
<copy file="${basedir}/.classpath.default" tofile="${basedir}/.classpath" overwrite="true"/>
|
||||
</target>
|
||||
|
||||
<target name="eclipse-ivyde" depends="check-eclipse-classpath-overwrite"
|
||||
unless="eclipse.classpath.abort"
|
||||
description="--> creates a .classpath for eclipse using Apache IvyDE version">
|
||||
<copy file="${basedir}/.classpath.ivyde" tofile="${basedir}/.classpath" overwrite="true"/>
|
||||
</target>
|
||||
</project>
|
||||
|
|
|
|||
|
|
@ -64,6 +64,32 @@ http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html
|
|||
|
||||
This is a work in progress though (see IVY-511), but patches helping migration to these conventions are welcome.
|
||||
|
||||
<h1>Developing with eclipse</h1>
|
||||
Even though you can develop Ivy with your IDE of choice, we support eclipse development by providing ad hoc metadata.
|
||||
|
||||
We currently provide two options:
|
||||
<h2>Eclipse alone</h2>
|
||||
To develop with a simple eclipse install all you need is eclipse 3.1 or greater, with no particular plugin.
|
||||
First call the following ant target in your Ivy workspace:
|
||||
<code>
|
||||
ant eclipse-default
|
||||
</code>
|
||||
This will resolve the dependencies of Ivy and produce a .classpath using the resolved jars for the build path.
|
||||
Then you can use the "Import->Existing project into workspace" eclipse feature to import the Ivy project in your workspace.
|
||||
<h2>Eclipse + IvyDE</h2>
|
||||
You can also leverage the latest IvyDE version to be able to easily resolve the ivy dependencies from Eclipse.
|
||||
To do so all you need is call the following ant target in your Ivy workspace:
|
||||
<code>
|
||||
ant eclipse-ivyde
|
||||
</code>
|
||||
or if you don't have ant installed you can simply copy the file .classpath.ivyde and rename it to .classpath
|
||||
Then you can import the project using "Import->Existing project into workspace" as long as you already have latest IvyDE installed.
|
||||
|
||||
To install latest IvyDE version compatible with the latest Ivy used to resolve Ivy dependencies, you will need to use a snapshot build, not endorsed by the ASF, available here:
|
||||
http://people.apache.org/~xavier/ivyde/snapshot/
|
||||
|
||||
Download the file and unzip its content in your eclipse installation directory.
|
||||
|
||||
<h1>Making a release</h1>
|
||||
<h2>Requirements</h2>
|
||||
Requirements for making a release are similar to the requirements for building from source, except that sun jdk 1.6 and ant 1.7 are required.
|
||||
|
|
|
|||
|
|
@ -999,4 +999,4 @@
|
|||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1
ivy.xml
1
ivy.xml
|
|
@ -43,6 +43,7 @@
|
|||
<dependency org="apache" name="oro" rev="2.0.8" conf="default,oro->default"/>
|
||||
<dependency org="apache" name="commons-vfs" rev="20060920" conf="vfs->default;default,webdav->webdav" />
|
||||
<dependency org="jcraft" name="jsch" rev="0.1.25" conf="default,sftp->default" />
|
||||
<dependency org="ant" name="ant-launcher" rev="1.6.5" conf="test->default"/>
|
||||
<dependency org="junit" name="junit" rev="3.8.2" conf="test->default" />
|
||||
</dependencies>
|
||||
</ivy-module>
|
||||
|
|
|
|||
|
|
@ -16,20 +16,15 @@
|
|||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
<ivyconf>
|
||||
<ivysettings>
|
||||
<include url="${ivy.default.conf.dir}/ivyconf-local.xml"/>
|
||||
<conf defaultResolver="public" />
|
||||
<settings defaultResolver="public" />
|
||||
<resolvers>
|
||||
<!--
|
||||
we use ivyrep for ivy and some artifacts, and ibiblio for other artifacts
|
||||
The reason for that is that commons vfs is still not released, thus we depend on an integration
|
||||
version only available on ivyrep, but not on ivyrep
|
||||
As soon as vfs will be available on ibiblio, the default configuration could be used again
|
||||
-->
|
||||
<url name="public">
|
||||
<ivy pattern="http://ivyrep.jayasoft.org/[organisation]/[module]/ivy-[revision].xml"/>
|
||||
<artifact pattern="http://ivyrep.jayasoft.org/[organisation]/[module]/[revision]/[artifact].[ext]"/>
|
||||
<artifact pattern="http://repo1.maven.org/maven/[module]/[type]s/[artifact]-[revision].[ext]"/>
|
||||
<artifact pattern="http://repo1.maven.org/maven2/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"/>
|
||||
</url>
|
||||
</resolvers>
|
||||
</ivyconf>
|
||||
</ivysettings>
|
||||
|
|
|
|||
Loading…
Reference in New Issue