You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Shay Tessler <sh...@gmail.com> on 2010/10/11 00:27:14 UTC
Using IVY programatically
hey all.
i am writing an java application based on plug-ins ,
i wish to use IVY ,to help me with dependencies issue when installing a
plug-in at run time
each plug-in should have some jar's he depends on ,
i need IVY to help me with what jar i can keep and what jar are not
necessary
i am new to IVY ,and i notice only XML configuration tutorial
is there an API and examples how to use IVY problematically
just to tell me what files to download , and i can trigger the download
manually
thank you
Re: Using IVY programatically
Posted by Shay Tessler <sh...@gmail.com>.
when i say run-time , means while the application is running ,
can u direct me to the code where you check the dependencies at runtime ?
where can i find it in your project
thank you
On Sat, Oct 16, 2010 at 5:49 AM, Geoff Clitheroe <g....@gmail.com>wrote:
> No - the dependencies are all for compile and test time. Those that are
> needed for runtime are packed into the single jar using proguard.
>
> -G
>
>
> On Sat, Oct 16, 2010 at 1:43 AM, Shay Tessler <sh...@gmail.com> wrote:
>
> > are u fetching dependencies at runtime just before building your system ?
> >
> > On Fri, Oct 15, 2010 at 4:13 AM, Geoff Clitheroe <g.clitheroe@gmail.com
> > >wrote:
> >
> > > You're more then welcome to check out the code and give it a try -
> > running
> > > 'ant setup-nb-build-environment' will use Ivy to fetch the dependencies
> > and
> > > running 'ant jar' compiles and runs proguard to deliver a single jar
> > (check
> > > dist after running).
> > >
> > > svn co http://codegeo.org/repos/cwb/GeoNetCWBQuery/trunkGeoNetCWBQuery
> > > cd GeoNetCWBQuery
> > > ant ivy-clean-cache
> > > ant setup-nb-build-environment
> > > ant jar
> > > ls dist
> > >
> > > Cheers,
> > > Geoff
> > >
> > >
> > > On Fri, Oct 15, 2010 at 9:29 AM, Shay Tessler <sh...@gmail.com>
> wrote:
> > >
> > > > this is a nice thing ,
> > > > i will give it a look , still need to learn more about ivy
> > > >
> > > > On Wed, Oct 13, 2010 at 10:51 AM, Geoff Clitheroe <
> > g.clitheroe@gmail.com
> > > > >wrote:
> > > >
> > > > > Sorry - you will need to be sure to look at the larger 'bin' jar
> > which
> > > is
> > > > > the repackaged one e.g.,
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> http://codegeo.org/archiva/repository/publish/nz/org/geonet/GeoNetCWBQuery/2.2.2/GeoNetCWBQuery-2.2.2-bin.jar
> > > > >
> > > > > -G
> > > > >
> > > > >
> > > > > On Wed, Oct 13, 2010 at 9:08 PM, Geoff Clitheroe <
> > > g.clitheroe@gmail.com
> > > > > >wrote:
> > > > >
> > > > > > Yep I get what you're saying, this is just a different approach.
> > We
> > > > > still
> > > > > > use Ivy to manage the dependencies it's just the build step
> merges
> > > our
> > > > > code
> > > > > > and all the dependencies together into a single jar instead of
> > > > delivering
> > > > > a
> > > > > > jar and trying to fetch the dependencies at run time.
> > > > > >
> > > > > > This project use Ivy for it's deps:
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> http://codegeo.org/fisheye/browse/cwb/GeoNetCWBQuery/trunk/ivy.xml?r=HEAD
> > > > > >
> > > > > > and proguard to repackage (and in the process shrink the
> download).
> > > > > Search
> > > > > > for proguard in:
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> http://codegeo.org/fisheye/browse/cwb/GeoNetCWBQuery/trunk/build.xml?r=HEAD&content=true
> > > > > >
> > > > > > Which delivers a single executable (grab the Jar and run jar tf
> on
> > > it)
> > > > > >
> > > > > >
> > http://codegeo.org/archiva/browse/nz.org.geonet/GeoNetCWBQuery/2.2.2
> > > > > >
> > > > > > FWIW docs are here (if you care to download lots of seismic data)
> > > > > >
> > > > > >
> > > http://www.geonet.org.nz/resources/basic-data/waveform-data/index.html
> > > > > >
> > > > > > It's an approach that has worked very well for us (and the
> users).
> > > > > >
> > > > > > Cheers,
> > > > > > Geoff
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Tue, Oct 12, 2010 at 7:06 AM, Shay Tessler <shay.te@gmail.com
> >
> > > > wrote:
> > > > > >
> > > > > >> hey Geoff
> > > > > >> i dont need a single jar , i need to manage dependencies smart
> way
> > > > > >> problematically
> > > > > >>
> > > > > >>
> > > > > >> On Mon, Oct 11, 2010 at 10:52 AM, Geoff Clitheroe <
> > > > > g.clitheroe@gmail.com
> > > > > >> >wrote:
> > > > > >>
> > > > > >> > Is it an option to repackage the dependencies along with your
> > code
> > > > > into
> > > > > >> a
> > > > > >> > single jar? We use progaurd to do this for a couple of
> projects.
> > > I
> > > > > can
> > > > > >> > point you at some ant files for the process if your
> interested.
> > > > > >> >
> > > > > >> > http://proguard.sourceforge.net/
> > > > > >> >
> > > > > >> > Cheers
> > > > > >> > Geoff
> > > > > >> > On 11 Oct 2010 11:27, "Shay Tessler" <sh...@gmail.com>
> wrote:
> > > > > >> > > hey all.
> > > > > >> > >
> > > > > >> > > i am writing an java application based on plug-ins ,
> > > > > >> > > i wish to use IVY ,to help me with dependencies issue when
> > > > > installing
> > > > > >> a
> > > > > >> > > plug-in at run time
> > > > > >> > >
> > > > > >> > > each plug-in should have some jar's he depends on ,
> > > > > >> > > i need IVY to help me with what jar i can keep and what jar
> > are
> > > > not
> > > > > >> > > necessary
> > > > > >> > >
> > > > > >> > > i am new to IVY ,and i notice only XML configuration
> tutorial
> > > > > >> > >
> > > > > >> > >
> > > > > >> > > is there an API and examples how to use IVY problematically
> > > > > >> > > just to tell me what files to download , and i can trigger
> the
> > > > > >> download
> > > > > >> > > manually
> > > > > >> > >
> > > > > >> > > thank you
> > > > > >> >
> > > > > >>
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: Using IVY programatically
Posted by Geoff Clitheroe <g....@gmail.com>.
No - the dependencies are all for compile and test time. Those that are
needed for runtime are packed into the single jar using proguard.
-G
On Sat, Oct 16, 2010 at 1:43 AM, Shay Tessler <sh...@gmail.com> wrote:
> are u fetching dependencies at runtime just before building your system ?
>
> On Fri, Oct 15, 2010 at 4:13 AM, Geoff Clitheroe <g.clitheroe@gmail.com
> >wrote:
>
> > You're more then welcome to check out the code and give it a try -
> running
> > 'ant setup-nb-build-environment' will use Ivy to fetch the dependencies
> and
> > running 'ant jar' compiles and runs proguard to deliver a single jar
> (check
> > dist after running).
> >
> > svn co http://codegeo.org/repos/cwb/GeoNetCWBQuery/trunk GeoNetCWBQuery
> > cd GeoNetCWBQuery
> > ant ivy-clean-cache
> > ant setup-nb-build-environment
> > ant jar
> > ls dist
> >
> > Cheers,
> > Geoff
> >
> >
> > On Fri, Oct 15, 2010 at 9:29 AM, Shay Tessler <sh...@gmail.com> wrote:
> >
> > > this is a nice thing ,
> > > i will give it a look , still need to learn more about ivy
> > >
> > > On Wed, Oct 13, 2010 at 10:51 AM, Geoff Clitheroe <
> g.clitheroe@gmail.com
> > > >wrote:
> > >
> > > > Sorry - you will need to be sure to look at the larger 'bin' jar
> which
> > is
> > > > the repackaged one e.g.,
> > > >
> > > >
> > > >
> > >
> >
> http://codegeo.org/archiva/repository/publish/nz/org/geonet/GeoNetCWBQuery/2.2.2/GeoNetCWBQuery-2.2.2-bin.jar
> > > >
> > > > -G
> > > >
> > > >
> > > > On Wed, Oct 13, 2010 at 9:08 PM, Geoff Clitheroe <
> > g.clitheroe@gmail.com
> > > > >wrote:
> > > >
> > > > > Yep I get what you're saying, this is just a different approach.
> We
> > > > still
> > > > > use Ivy to manage the dependencies it's just the build step merges
> > our
> > > > code
> > > > > and all the dependencies together into a single jar instead of
> > > delivering
> > > > a
> > > > > jar and trying to fetch the dependencies at run time.
> > > > >
> > > > > This project use Ivy for it's deps:
> > > > >
> > > > >
> > > >
> > >
> >
> http://codegeo.org/fisheye/browse/cwb/GeoNetCWBQuery/trunk/ivy.xml?r=HEAD
> > > > >
> > > > > and proguard to repackage (and in the process shrink the download).
> > > > Search
> > > > > for proguard in:
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> http://codegeo.org/fisheye/browse/cwb/GeoNetCWBQuery/trunk/build.xml?r=HEAD&content=true
> > > > >
> > > > > Which delivers a single executable (grab the Jar and run jar tf on
> > it)
> > > > >
> > > > >
> http://codegeo.org/archiva/browse/nz.org.geonet/GeoNetCWBQuery/2.2.2
> > > > >
> > > > > FWIW docs are here (if you care to download lots of seismic data)
> > > > >
> > > > >
> > http://www.geonet.org.nz/resources/basic-data/waveform-data/index.html
> > > > >
> > > > > It's an approach that has worked very well for us (and the users).
> > > > >
> > > > > Cheers,
> > > > > Geoff
> > > > >
> > > > >
> > > > >
> > > > > On Tue, Oct 12, 2010 at 7:06 AM, Shay Tessler <sh...@gmail.com>
> > > wrote:
> > > > >
> > > > >> hey Geoff
> > > > >> i dont need a single jar , i need to manage dependencies smart way
> > > > >> problematically
> > > > >>
> > > > >>
> > > > >> On Mon, Oct 11, 2010 at 10:52 AM, Geoff Clitheroe <
> > > > g.clitheroe@gmail.com
> > > > >> >wrote:
> > > > >>
> > > > >> > Is it an option to repackage the dependencies along with your
> code
> > > > into
> > > > >> a
> > > > >> > single jar? We use progaurd to do this for a couple of projects.
> > I
> > > > can
> > > > >> > point you at some ant files for the process if your interested.
> > > > >> >
> > > > >> > http://proguard.sourceforge.net/
> > > > >> >
> > > > >> > Cheers
> > > > >> > Geoff
> > > > >> > On 11 Oct 2010 11:27, "Shay Tessler" <sh...@gmail.com> wrote:
> > > > >> > > hey all.
> > > > >> > >
> > > > >> > > i am writing an java application based on plug-ins ,
> > > > >> > > i wish to use IVY ,to help me with dependencies issue when
> > > > installing
> > > > >> a
> > > > >> > > plug-in at run time
> > > > >> > >
> > > > >> > > each plug-in should have some jar's he depends on ,
> > > > >> > > i need IVY to help me with what jar i can keep and what jar
> are
> > > not
> > > > >> > > necessary
> > > > >> > >
> > > > >> > > i am new to IVY ,and i notice only XML configuration tutorial
> > > > >> > >
> > > > >> > >
> > > > >> > > is there an API and examples how to use IVY problematically
> > > > >> > > just to tell me what files to download , and i can trigger the
> > > > >> download
> > > > >> > > manually
> > > > >> > >
> > > > >> > > thank you
> > > > >> >
> > > > >>
> > > > >
> > > > >
> > > >
> > >
> >
>
Re: Using IVY programatically
Posted by Shay Tessler <sh...@gmail.com>.
are u fetching dependencies at runtime just before building your system ?
On Fri, Oct 15, 2010 at 4:13 AM, Geoff Clitheroe <g....@gmail.com>wrote:
> You're more then welcome to check out the code and give it a try - running
> 'ant setup-nb-build-environment' will use Ivy to fetch the dependencies and
> running 'ant jar' compiles and runs proguard to deliver a single jar (check
> dist after running).
>
> svn co http://codegeo.org/repos/cwb/GeoNetCWBQuery/trunk GeoNetCWBQuery
> cd GeoNetCWBQuery
> ant ivy-clean-cache
> ant setup-nb-build-environment
> ant jar
> ls dist
>
> Cheers,
> Geoff
>
>
> On Fri, Oct 15, 2010 at 9:29 AM, Shay Tessler <sh...@gmail.com> wrote:
>
> > this is a nice thing ,
> > i will give it a look , still need to learn more about ivy
> >
> > On Wed, Oct 13, 2010 at 10:51 AM, Geoff Clitheroe <g.clitheroe@gmail.com
> > >wrote:
> >
> > > Sorry - you will need to be sure to look at the larger 'bin' jar which
> is
> > > the repackaged one e.g.,
> > >
> > >
> > >
> >
> http://codegeo.org/archiva/repository/publish/nz/org/geonet/GeoNetCWBQuery/2.2.2/GeoNetCWBQuery-2.2.2-bin.jar
> > >
> > > -G
> > >
> > >
> > > On Wed, Oct 13, 2010 at 9:08 PM, Geoff Clitheroe <
> g.clitheroe@gmail.com
> > > >wrote:
> > >
> > > > Yep I get what you're saying, this is just a different approach. We
> > > still
> > > > use Ivy to manage the dependencies it's just the build step merges
> our
> > > code
> > > > and all the dependencies together into a single jar instead of
> > delivering
> > > a
> > > > jar and trying to fetch the dependencies at run time.
> > > >
> > > > This project use Ivy for it's deps:
> > > >
> > > >
> > >
> >
> http://codegeo.org/fisheye/browse/cwb/GeoNetCWBQuery/trunk/ivy.xml?r=HEAD
> > > >
> > > > and proguard to repackage (and in the process shrink the download).
> > > Search
> > > > for proguard in:
> > > >
> > > >
> > > >
> > >
> >
> http://codegeo.org/fisheye/browse/cwb/GeoNetCWBQuery/trunk/build.xml?r=HEAD&content=true
> > > >
> > > > Which delivers a single executable (grab the Jar and run jar tf on
> it)
> > > >
> > > > http://codegeo.org/archiva/browse/nz.org.geonet/GeoNetCWBQuery/2.2.2
> > > >
> > > > FWIW docs are here (if you care to download lots of seismic data)
> > > >
> > > >
> http://www.geonet.org.nz/resources/basic-data/waveform-data/index.html
> > > >
> > > > It's an approach that has worked very well for us (and the users).
> > > >
> > > > Cheers,
> > > > Geoff
> > > >
> > > >
> > > >
> > > > On Tue, Oct 12, 2010 at 7:06 AM, Shay Tessler <sh...@gmail.com>
> > wrote:
> > > >
> > > >> hey Geoff
> > > >> i dont need a single jar , i need to manage dependencies smart way
> > > >> problematically
> > > >>
> > > >>
> > > >> On Mon, Oct 11, 2010 at 10:52 AM, Geoff Clitheroe <
> > > g.clitheroe@gmail.com
> > > >> >wrote:
> > > >>
> > > >> > Is it an option to repackage the dependencies along with your code
> > > into
> > > >> a
> > > >> > single jar? We use progaurd to do this for a couple of projects.
> I
> > > can
> > > >> > point you at some ant files for the process if your interested.
> > > >> >
> > > >> > http://proguard.sourceforge.net/
> > > >> >
> > > >> > Cheers
> > > >> > Geoff
> > > >> > On 11 Oct 2010 11:27, "Shay Tessler" <sh...@gmail.com> wrote:
> > > >> > > hey all.
> > > >> > >
> > > >> > > i am writing an java application based on plug-ins ,
> > > >> > > i wish to use IVY ,to help me with dependencies issue when
> > > installing
> > > >> a
> > > >> > > plug-in at run time
> > > >> > >
> > > >> > > each plug-in should have some jar's he depends on ,
> > > >> > > i need IVY to help me with what jar i can keep and what jar are
> > not
> > > >> > > necessary
> > > >> > >
> > > >> > > i am new to IVY ,and i notice only XML configuration tutorial
> > > >> > >
> > > >> > >
> > > >> > > is there an API and examples how to use IVY problematically
> > > >> > > just to tell me what files to download , and i can trigger the
> > > >> download
> > > >> > > manually
> > > >> > >
> > > >> > > thank you
> > > >> >
> > > >>
> > > >
> > > >
> > >
> >
>
Re: Using IVY programatically
Posted by Geoff Clitheroe <g....@gmail.com>.
You're more then welcome to check out the code and give it a try - running
'ant setup-nb-build-environment' will use Ivy to fetch the dependencies and
running 'ant jar' compiles and runs proguard to deliver a single jar (check
dist after running).
svn co http://codegeo.org/repos/cwb/GeoNetCWBQuery/trunk GeoNetCWBQuery
cd GeoNetCWBQuery
ant ivy-clean-cache
ant setup-nb-build-environment
ant jar
ls dist
Cheers,
Geoff
On Fri, Oct 15, 2010 at 9:29 AM, Shay Tessler <sh...@gmail.com> wrote:
> this is a nice thing ,
> i will give it a look , still need to learn more about ivy
>
> On Wed, Oct 13, 2010 at 10:51 AM, Geoff Clitheroe <g.clitheroe@gmail.com
> >wrote:
>
> > Sorry - you will need to be sure to look at the larger 'bin' jar which is
> > the repackaged one e.g.,
> >
> >
> >
> http://codegeo.org/archiva/repository/publish/nz/org/geonet/GeoNetCWBQuery/2.2.2/GeoNetCWBQuery-2.2.2-bin.jar
> >
> > -G
> >
> >
> > On Wed, Oct 13, 2010 at 9:08 PM, Geoff Clitheroe <g.clitheroe@gmail.com
> > >wrote:
> >
> > > Yep I get what you're saying, this is just a different approach. We
> > still
> > > use Ivy to manage the dependencies it's just the build step merges our
> > code
> > > and all the dependencies together into a single jar instead of
> delivering
> > a
> > > jar and trying to fetch the dependencies at run time.
> > >
> > > This project use Ivy for it's deps:
> > >
> > >
> >
> http://codegeo.org/fisheye/browse/cwb/GeoNetCWBQuery/trunk/ivy.xml?r=HEAD
> > >
> > > and proguard to repackage (and in the process shrink the download).
> > Search
> > > for proguard in:
> > >
> > >
> > >
> >
> http://codegeo.org/fisheye/browse/cwb/GeoNetCWBQuery/trunk/build.xml?r=HEAD&content=true
> > >
> > > Which delivers a single executable (grab the Jar and run jar tf on it)
> > >
> > > http://codegeo.org/archiva/browse/nz.org.geonet/GeoNetCWBQuery/2.2.2
> > >
> > > FWIW docs are here (if you care to download lots of seismic data)
> > >
> > > http://www.geonet.org.nz/resources/basic-data/waveform-data/index.html
> > >
> > > It's an approach that has worked very well for us (and the users).
> > >
> > > Cheers,
> > > Geoff
> > >
> > >
> > >
> > > On Tue, Oct 12, 2010 at 7:06 AM, Shay Tessler <sh...@gmail.com>
> wrote:
> > >
> > >> hey Geoff
> > >> i dont need a single jar , i need to manage dependencies smart way
> > >> problematically
> > >>
> > >>
> > >> On Mon, Oct 11, 2010 at 10:52 AM, Geoff Clitheroe <
> > g.clitheroe@gmail.com
> > >> >wrote:
> > >>
> > >> > Is it an option to repackage the dependencies along with your code
> > into
> > >> a
> > >> > single jar? We use progaurd to do this for a couple of projects. I
> > can
> > >> > point you at some ant files for the process if your interested.
> > >> >
> > >> > http://proguard.sourceforge.net/
> > >> >
> > >> > Cheers
> > >> > Geoff
> > >> > On 11 Oct 2010 11:27, "Shay Tessler" <sh...@gmail.com> wrote:
> > >> > > hey all.
> > >> > >
> > >> > > i am writing an java application based on plug-ins ,
> > >> > > i wish to use IVY ,to help me with dependencies issue when
> > installing
> > >> a
> > >> > > plug-in at run time
> > >> > >
> > >> > > each plug-in should have some jar's he depends on ,
> > >> > > i need IVY to help me with what jar i can keep and what jar are
> not
> > >> > > necessary
> > >> > >
> > >> > > i am new to IVY ,and i notice only XML configuration tutorial
> > >> > >
> > >> > >
> > >> > > is there an API and examples how to use IVY problematically
> > >> > > just to tell me what files to download , and i can trigger the
> > >> download
> > >> > > manually
> > >> > >
> > >> > > thank you
> > >> >
> > >>
> > >
> > >
> >
>
Re: Using IVY programatically
Posted by Shay Tessler <sh...@gmail.com>.
this is a nice thing ,
i will give it a look , still need to learn more about ivy
On Wed, Oct 13, 2010 at 10:51 AM, Geoff Clitheroe <g....@gmail.com>wrote:
> Sorry - you will need to be sure to look at the larger 'bin' jar which is
> the repackaged one e.g.,
>
>
> http://codegeo.org/archiva/repository/publish/nz/org/geonet/GeoNetCWBQuery/2.2.2/GeoNetCWBQuery-2.2.2-bin.jar
>
> -G
>
>
> On Wed, Oct 13, 2010 at 9:08 PM, Geoff Clitheroe <g.clitheroe@gmail.com
> >wrote:
>
> > Yep I get what you're saying, this is just a different approach. We
> still
> > use Ivy to manage the dependencies it's just the build step merges our
> code
> > and all the dependencies together into a single jar instead of delivering
> a
> > jar and trying to fetch the dependencies at run time.
> >
> > This project use Ivy for it's deps:
> >
> >
> http://codegeo.org/fisheye/browse/cwb/GeoNetCWBQuery/trunk/ivy.xml?r=HEAD
> >
> > and proguard to repackage (and in the process shrink the download).
> Search
> > for proguard in:
> >
> >
> >
> http://codegeo.org/fisheye/browse/cwb/GeoNetCWBQuery/trunk/build.xml?r=HEAD&content=true
> >
> > Which delivers a single executable (grab the Jar and run jar tf on it)
> >
> > http://codegeo.org/archiva/browse/nz.org.geonet/GeoNetCWBQuery/2.2.2
> >
> > FWIW docs are here (if you care to download lots of seismic data)
> >
> > http://www.geonet.org.nz/resources/basic-data/waveform-data/index.html
> >
> > It's an approach that has worked very well for us (and the users).
> >
> > Cheers,
> > Geoff
> >
> >
> >
> > On Tue, Oct 12, 2010 at 7:06 AM, Shay Tessler <sh...@gmail.com> wrote:
> >
> >> hey Geoff
> >> i dont need a single jar , i need to manage dependencies smart way
> >> problematically
> >>
> >>
> >> On Mon, Oct 11, 2010 at 10:52 AM, Geoff Clitheroe <
> g.clitheroe@gmail.com
> >> >wrote:
> >>
> >> > Is it an option to repackage the dependencies along with your code
> into
> >> a
> >> > single jar? We use progaurd to do this for a couple of projects. I
> can
> >> > point you at some ant files for the process if your interested.
> >> >
> >> > http://proguard.sourceforge.net/
> >> >
> >> > Cheers
> >> > Geoff
> >> > On 11 Oct 2010 11:27, "Shay Tessler" <sh...@gmail.com> wrote:
> >> > > hey all.
> >> > >
> >> > > i am writing an java application based on plug-ins ,
> >> > > i wish to use IVY ,to help me with dependencies issue when
> installing
> >> a
> >> > > plug-in at run time
> >> > >
> >> > > each plug-in should have some jar's he depends on ,
> >> > > i need IVY to help me with what jar i can keep and what jar are not
> >> > > necessary
> >> > >
> >> > > i am new to IVY ,and i notice only XML configuration tutorial
> >> > >
> >> > >
> >> > > is there an API and examples how to use IVY problematically
> >> > > just to tell me what files to download , and i can trigger the
> >> download
> >> > > manually
> >> > >
> >> > > thank you
> >> >
> >>
> >
> >
>
Re: Using IVY programatically
Posted by Geoff Clitheroe <g....@gmail.com>.
Sorry - you will need to be sure to look at the larger 'bin' jar which is
the repackaged one e.g.,
http://codegeo.org/archiva/repository/publish/nz/org/geonet/GeoNetCWBQuery/2.2.2/GeoNetCWBQuery-2.2.2-bin.jar
-G
On Wed, Oct 13, 2010 at 9:08 PM, Geoff Clitheroe <g....@gmail.com>wrote:
> Yep I get what you're saying, this is just a different approach. We still
> use Ivy to manage the dependencies it's just the build step merges our code
> and all the dependencies together into a single jar instead of delivering a
> jar and trying to fetch the dependencies at run time.
>
> This project use Ivy for it's deps:
>
> http://codegeo.org/fisheye/browse/cwb/GeoNetCWBQuery/trunk/ivy.xml?r=HEAD
>
> and proguard to repackage (and in the process shrink the download). Search
> for proguard in:
>
>
> http://codegeo.org/fisheye/browse/cwb/GeoNetCWBQuery/trunk/build.xml?r=HEAD&content=true
>
> Which delivers a single executable (grab the Jar and run jar tf on it)
>
> http://codegeo.org/archiva/browse/nz.org.geonet/GeoNetCWBQuery/2.2.2
>
> FWIW docs are here (if you care to download lots of seismic data)
>
> http://www.geonet.org.nz/resources/basic-data/waveform-data/index.html
>
> It's an approach that has worked very well for us (and the users).
>
> Cheers,
> Geoff
>
>
>
> On Tue, Oct 12, 2010 at 7:06 AM, Shay Tessler <sh...@gmail.com> wrote:
>
>> hey Geoff
>> i dont need a single jar , i need to manage dependencies smart way
>> problematically
>>
>>
>> On Mon, Oct 11, 2010 at 10:52 AM, Geoff Clitheroe <g.clitheroe@gmail.com
>> >wrote:
>>
>> > Is it an option to repackage the dependencies along with your code into
>> a
>> > single jar? We use progaurd to do this for a couple of projects. I can
>> > point you at some ant files for the process if your interested.
>> >
>> > http://proguard.sourceforge.net/
>> >
>> > Cheers
>> > Geoff
>> > On 11 Oct 2010 11:27, "Shay Tessler" <sh...@gmail.com> wrote:
>> > > hey all.
>> > >
>> > > i am writing an java application based on plug-ins ,
>> > > i wish to use IVY ,to help me with dependencies issue when installing
>> a
>> > > plug-in at run time
>> > >
>> > > each plug-in should have some jar's he depends on ,
>> > > i need IVY to help me with what jar i can keep and what jar are not
>> > > necessary
>> > >
>> > > i am new to IVY ,and i notice only XML configuration tutorial
>> > >
>> > >
>> > > is there an API and examples how to use IVY problematically
>> > > just to tell me what files to download , and i can trigger the
>> download
>> > > manually
>> > >
>> > > thank you
>> >
>>
>
>
Re: Using IVY programatically
Posted by Geoff Clitheroe <g....@gmail.com>.
Yep I get what you're saying, this is just a different approach. We still
use Ivy to manage the dependencies it's just the build step merges our code
and all the dependencies together into a single jar instead of delivering a
jar and trying to fetch the dependencies at run time.
This project use Ivy for it's deps:
http://codegeo.org/fisheye/browse/cwb/GeoNetCWBQuery/trunk/ivy.xml?r=HEAD
and proguard to repackage (and in the process shrink the download). Search
for proguard in:
http://codegeo.org/fisheye/browse/cwb/GeoNetCWBQuery/trunk/build.xml?r=HEAD&content=true
Which delivers a single executable (grab the Jar and run jar tf on it)
http://codegeo.org/archiva/browse/nz.org.geonet/GeoNetCWBQuery/2.2.2
FWIW docs are here (if you care to download lots of seismic data)
http://www.geonet.org.nz/resources/basic-data/waveform-data/index.html
It's an approach that has worked very well for us (and the users).
Cheers,
Geoff
On Tue, Oct 12, 2010 at 7:06 AM, Shay Tessler <sh...@gmail.com> wrote:
> hey Geoff
> i dont need a single jar , i need to manage dependencies smart way
> problematically
>
>
> On Mon, Oct 11, 2010 at 10:52 AM, Geoff Clitheroe <g.clitheroe@gmail.com
> >wrote:
>
> > Is it an option to repackage the dependencies along with your code into a
> > single jar? We use progaurd to do this for a couple of projects. I can
> > point you at some ant files for the process if your interested.
> >
> > http://proguard.sourceforge.net/
> >
> > Cheers
> > Geoff
> > On 11 Oct 2010 11:27, "Shay Tessler" <sh...@gmail.com> wrote:
> > > hey all.
> > >
> > > i am writing an java application based on plug-ins ,
> > > i wish to use IVY ,to help me with dependencies issue when installing a
> > > plug-in at run time
> > >
> > > each plug-in should have some jar's he depends on ,
> > > i need IVY to help me with what jar i can keep and what jar are not
> > > necessary
> > >
> > > i am new to IVY ,and i notice only XML configuration tutorial
> > >
> > >
> > > is there an API and examples how to use IVY problematically
> > > just to tell me what files to download , and i can trigger the download
> > > manually
> > >
> > > thank you
> >
>
Re: Using IVY programatically
Posted by Shay Tessler <sh...@gmail.com>.
hey Geoff
i dont need a single jar , i need to manage dependencies smart way
problematically
On Mon, Oct 11, 2010 at 10:52 AM, Geoff Clitheroe <g....@gmail.com>wrote:
> Is it an option to repackage the dependencies along with your code into a
> single jar? We use progaurd to do this for a couple of projects. I can
> point you at some ant files for the process if your interested.
>
> http://proguard.sourceforge.net/
>
> Cheers
> Geoff
> On 11 Oct 2010 11:27, "Shay Tessler" <sh...@gmail.com> wrote:
> > hey all.
> >
> > i am writing an java application based on plug-ins ,
> > i wish to use IVY ,to help me with dependencies issue when installing a
> > plug-in at run time
> >
> > each plug-in should have some jar's he depends on ,
> > i need IVY to help me with what jar i can keep and what jar are not
> > necessary
> >
> > i am new to IVY ,and i notice only XML configuration tutorial
> >
> >
> > is there an API and examples how to use IVY problematically
> > just to tell me what files to download , and i can trigger the download
> > manually
> >
> > thank you
>
Re: Using IVY programatically
Posted by Geoff Clitheroe <g....@gmail.com>.
Is it an option to repackage the dependencies along with your code into a
single jar? We use progaurd to do this for a couple of projects. I can
point you at some ant files for the process if your interested.
http://proguard.sourceforge.net/
Cheers
Geoff
On 11 Oct 2010 11:27, "Shay Tessler" <sh...@gmail.com> wrote:
> hey all.
>
> i am writing an java application based on plug-ins ,
> i wish to use IVY ,to help me with dependencies issue when installing a
> plug-in at run time
>
> each plug-in should have some jar's he depends on ,
> i need IVY to help me with what jar i can keep and what jar are not
> necessary
>
> i am new to IVY ,and i notice only XML configuration tutorial
>
>
> is there an API and examples how to use IVY problematically
> just to tell me what files to download , and i can trigger the download
> manually
>
> thank you
Re: Using IVY programatically
Posted by Shay Tessler <sh...@gmail.com>.
i am developing an application that uses a repository for plugins at runtime
i just need IVY to tell me what are the dependencies ,
i can do the rest my self
where can i find this programming api , and some samples
thank you
On Mon, Oct 11, 2010 at 9:24 AM, Klaas Reineke <kl...@blau.de>wrote:
> Hi,
>
> there is a programmatical API but it does not provide all the nice tasks
> that exists for ANT. Sadly a lot of the cool features Ivy includes is
> directly tied to ANT and uses ANT data structures. I tried to build a ruby
> gem for Ivy to be used with buildr and in the end had to fall back to the
> ANT interface.
>
> Regards Klaas
>
> -----Original Message-----
> From: Shay Tessler [mailto:shay.te@gmail.com]
> Sent: Monday, October 11, 2010 12:27 AM
> To: ivy-user@ant.apache.org
> Subject: Using IVY programatically
>
> hey all.
>
> i am writing an java application based on plug-ins ,
> i wish to use IVY ,to help me with dependencies issue when installing a
> plug-in at run time
>
> each plug-in should have some jar's he depends on ,
> i need IVY to help me with what jar i can keep and what jar are not
> necessary
>
> i am new to IVY ,and i notice only XML configuration tutorial
>
>
> is there an API and examples how to use IVY problematically
> just to tell me what files to download , and i can trigger the download
> manually
>
> thank you
>
RE: Using IVY programatically
Posted by Klaas Reineke <kl...@blau.de>.
Hi,
there is a programmatical API but it does not provide all the nice tasks that exists for ANT. Sadly a lot of the cool features Ivy includes is directly tied to ANT and uses ANT data structures. I tried to build a ruby gem for Ivy to be used with buildr and in the end had to fall back to the ANT interface.
Regards Klaas
-----Original Message-----
From: Shay Tessler [mailto:shay.te@gmail.com]
Sent: Monday, October 11, 2010 12:27 AM
To: ivy-user@ant.apache.org
Subject: Using IVY programatically
hey all.
i am writing an java application based on plug-ins ,
i wish to use IVY ,to help me with dependencies issue when installing a
plug-in at run time
each plug-in should have some jar's he depends on ,
i need IVY to help me with what jar i can keep and what jar are not
necessary
i am new to IVY ,and i notice only XML configuration tutorial
is there an API and examples how to use IVY problematically
just to tell me what files to download , and i can trigger the download
manually
thank you