In org.apache.ivy.core.module.id
There is a html file describing this package.
Quote.
" Text Representation
These classes share an homogeneous text representation, which can be
easily obtained through the toString() method.
The general pattern is:
[organisation]#[module]#[branch];[revision]![artifact].[ext]([type]) The
# before the branch is present only if the branch is not empty.
The type and surrounding parenthesis are present only if different from
the extension.
A textual representation can be parsed into an object (supported for
ModuleRevisionId only yet), as long as a strict set of characters is
used for each field (which is recommended).
Allowed characters are:
* organisation
* a-z A-Z 0-9 - / . _ + = module
* a-z A-Z 0-9 - / . _ + = branch
* a-z A-Z 0-9 - / . _ + = revision
* a-z A-Z 0-9 - / . _ + = , [ ] { } ( ) : @ artifact
* a-z A-Z 0-9 - / . _ + = extension
* a-z A-Z 0-9 - / . _ + = type
a-z A-Z 0-9 - / . _ + ="
And btw is javadoc published anywhere?
Daniel
-----Original Message-----
From: Lewis, Eric [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2008 7:38 AM
To: [email protected]
Subject: How to publish source JAR?
Newbie is back :-)
Somehow I don't get it: How can I publish my JAR with the source files?
>From what I understand, I can publish my JAR locally, by using
<ivy:publish resolver="local" overwrite="true"
pubrevision="${project.version}">
<artifacts
pattern="${target.dir}/[artifact]-[revision].[ext]" />
</ivy:publish>
This works fine, but I also want to publish my source JAR. But
<ivy:publish resolver="local" overwrite="true"
pubrevision="${project.version}">
<artifacts
pattern="${target.dir}/[artifact]-[revision].[ext]" />
<artifacts
pattern="${target.dir}/[artifact]-[revision]-sources.[ext]" />
</ivy:publish>
doesn't publish the util-3.0.5-sources.jar from my util project.
Also, is there any reference for the [] variables? I thought (from
looking at my IvyDE configuration) that perhaps the following could work
...
<artifacts
pattern="${target.dir}/[artifact]-[revision][source].[ext]" />
...
or
...
<artifacts
pattern="${target.dir}/[artifact]-[revision]-[source].[ext]" />
...
?
Any help is greatly appreciated!
Thanks,
Eric