ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: Command line fails Ivy 1.4.1
Date Mon, 24 Sep 2007 17:50:59 GMT
On 9/24/07, Xavier Hanin <xavier.hanin@gmail.com> wrote:
>
> On 9/24/07, Jim Adams <Jim.Adams@sas.com> wrote:
> >
> > Just a note, the ImageResolver jar contains a local ImageResolver
> > extension. The ivyconf.xml file specifies its use. It occurs to me that
> > the ivyconf.xml file that is in use locally contains property
> > substitutions that get handl;ed by Ant. Is that not allowed in the CLI
> > version?
>
>
> The CLI version cannot rely on Ant, but Ivy features property substitution
> on its own, you only need to load the properties in your ivysettings (the
> syntax is the same as in Ant, Ivy accepts both properties files and inline
> property definition.
>
> For the ImageResolver.jar, you should better use Ivy classloading
> mechanism, then you wouldn't have to add it yourself to the classpath (which
> can be really cumbersome if you IvyDE for instance).
>
> But this does not explain the reason of the NPE... After some
> investigation, it seems this is a bug in Ivy: the command line version
> publishing feature is broken. Could you open an issue in JIRA with that?
>

BTW, the 2.0 alpha 2 version should fix this problem. Could you give it a
try and tell us if it works (note that some command line arguments have
changed in 2.x). Thanks.

Xavier

Xavier
>
> > -----Original Message-----
> > > From: James Poli [mailto: James.Poli@sas.com]
> > > Sent: Monday, September 24, 2007 12:40 PM
> > > To: ivy-user@incubator.apache.org
> > > Subject: RE: Command line fails Ivy 1.4.1
> > >
> > >  Xavier,
> > >
> > >  The command is below.  It's run on Unix so the '\'s are command line
> > > continuations:
> > >
> > >  sdsjava -cp
> > > commons-cli-1.0.jar:ivy-1.4.1.jar:ivy-core-1.4.1.jar:sas.tools
> > .ivy.Image
> > > ServerResolver.jar fr.jayasoft.ivy.Main \
> > >   -conf ivyconf.xml \
> > >   -publish remote \
> > >   -publishpattern dist/foo/bar/junk.jar \
> > >   -revision 1.1.1    \
> > >   -status integration  \
> > >   -ivy junk_ivy.xml \
> > >   -verbose
> > >
> > >   All the jars are in that directory.
> > >
> > >  Jim
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Xavier Hanin [mailto: xavier.hanin@gmail.com]
> > > Sent: Monday, September 24, 2007 12:00 PM
> > > To: ivy-user@incubator.apache.org
> > > Subject: Re: Command line fails Ivy 1.4.1
> > >
> > > Could you give an example of how you run the command line,
> > > and what you intend to do with it? We may find a workaround
> > > to your problem, and narrow it down to enter a new jira issue.
> > >
> > > Xavier
> > >
> > > On 9/24/07, James Poli <James.Poli@sas.com> wrote:
> > > >
> > > > Hello,
> > > >
> > > > We're trying to run command line ivy and are getting an
> > > exception (see
> > > > below).  It appears that the publication date is never set.   Do you
> > > > have an example of how to run command line ivy?  Is this
> > > fixed in the
> > > > alpha?
> > > >
> > > > Exception in thread "main" java.lang.NullPointerException: null
> > > > publication date not allowed
> > > >         at
> > > >
> > > fr.jayasoft.ivy.DefaultModuleDescriptor.setResolvedPublicationDate(Def
> > > > au
> > > > ltModuleDescriptor.java:206)
> > > >         at fr.jayasoft.ivy.Ivy.deliver(Ivy.java:2199)
> > > >         at fr.jayasoft.ivy.Ivy.deliver(Ivy.java:2153)
> > > >         at fr.jayasoft.ivy.Main.main(Main.java:291)
> > > >
> > > >
> > > > Thanks in advance,
> > > > Jim
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Xavier Hanin - Independent Java Consultant
> > > http://xhab.blogspot.com/ http://incubator.apache.org/ivy/
> > > http://www.xoocode.org/
> > >
> >
>
>
>
> --
> Xavier Hanin - Independent Java Consultant
> http://xhab.blogspot.com/
> http://incubator.apache.org/ivy/
> http://www.xoocode.org/
>



-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://incubator.apache.org/ivy/
http://www.xoocode.org/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message