Home » Language IDEs » Java Development Tools (JDT) » Eclipse & Ant [HELP]
Eclipse & Ant [HELP] [message #134437] |
Tue, 13 January 2004 20:31  |
Eclipse User |
|
|
|
Originally posted by: soundtech.n-o---s-p-a-m.hotpop.com
This is a multi-part message in MIME format.
------=_NextPart_000_00FB_01C3DA3E.242A5F10
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi there All!
For those who use Eclipse, that almost shurelly uses Ant also, how can I =
(imagine the scenario):
- I created a project with some classes(still in development =
improvements, so it keeps changing), that are used in, for example 3 or =
4, other projects, so these are dependent of the first.
When running on the applet, everything works great, the classes from the =
first project are included at run-time, but if I build one of the latest =
projects, the classes used(from the 1st) aren't included on the pdb, how =
can I do this? Of course, without copying the classes from one project =
to the other....
Must be something on build.xml. Is it possible for ant to know an =
Eclipse project properties?
Thanks,
><))))=BA> ><))))=BA> ><))))=BA> ><))))=BA> ><))))=BA>
[PT]Pedro <soundtech @ hotpop (dot) com>
><))))=BA> ><))))=BA> ><))))=BA> ><))))=BA> ><))))=BA>
------=_NextPart_000_00FB_01C3DA3E.242A5F10
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2734.1600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DVerdana size=3D2>
<DIV><FONT face=3DVerdana size=3D2>Hi there All!</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>For those who use Eclipse, that =
almost=20
shurelly uses Ant also, how can I (imagine the scenario):</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>- I created a project with some =
classes(still in=20
development improvements, so it keeps changing), that are used in, for =
example 3=20
or 4, other projects, so these are dependent of the first.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>When running on the applet, =
everything works=20
great, the classes from the first project are included at run-time, but =
if I=20
build one of the latest projects, the classes used(from the 1st) aren't =
included=20
on the pdb, how can I do this? Of course, without copying the classes =
from one=20
project to the other....</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>Must be something =
on <EM>build.xml</EM>. Is=20
it possible for ant to know an Eclipse project properties?</FONT></DIV>
<DIV>
<DIV>
<P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </P>
<P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">Thanks,</P>
<P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><FONT face=3D"Courier =
New"=20
color=3D#009999 size=3D2>><))))=BA> =
><))))=BA> =20
><))))=BA> ><))))=BA> =20
><))))=BA></FONT></P></DIV>
<DIV><FONT face=3D"Courier New" size=3D2> =
<STRONG><FONT=20
color=3D#3366cc>[PT]</FONT><FONT color=3D#003366>Pedro</FONT></STRONG> =
<FONT=20
color=3D#808080><soundtech @ hotpop (dot) com><BR></FONT><FONT=20
color=3D#009999>><))))=BA> ><))))=BA> =20
><))))=BA> ><))))=BA> =20
><))))=BA></FONT></FONT></DIV>
<P> </P></DIV></FONT></DIV></BODY></HTML>
------=_NextPart_000_00FB_01C3DA3E.242A5F10--
|
|
|
Re: Eclipse & Ant [HELP] [message #134589 is a reply to message #134437] |
Wed, 14 January 2004 08:12   |
Eclipse User |
|
|
|
Originally posted by: heger.geomi.com
this is a common occurrence. you need classes from other projects. another
terminology would be you are using libraries. the other projects are the
libraries.
so what you do in ant is you build each library your project depends on,
then
1) pack it in a jar file
2) add the jar file to your /lib directory (delete the existing one first)
3) add these jars to the classpath for the executable
voila!
there are other ways to do that, but this is the most common one. most
importantly, you never create copies of your source files (which would be a
recipe for disaster).
nik
"s0undt3ch" <soundtech@n-o---s-p-a-m.hotpop.com> wrote in message
news:bu2638$uj0$1@eclipse.org...
Hi there All!
For those who use Eclipse, that almost shurelly uses Ant also, how can I
(imagine the scenario):
- I created a project with some classes(still in development improvements,
so it keeps changing), that are used in, for example 3 or 4, other projects,
so these are dependent of the first.
When running on the applet, everything works great, the classes from the
first project are included at run-time, but if I build one of the latest
projects, the classes used(from the 1st) aren't included on the pdb, how can
I do this? Of course, without copying the classes from one project to the
other....
Must be something on build.xml. Is it possible for ant to know an Eclipse
project properties?
Thanks,
><))))
|
|
|
Re: Eclipse & Ant [HELP] [message #134642 is a reply to message #134589] |
Wed, 14 January 2004 09:36  |
Eclipse User |
|
|
|
Originally posted by: soundtech.n-o---s-p-a-m.hotpop.com
This is a multi-part message in MIME format.
------=_NextPart_000_0008_01C3DAAB.C49333B0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Well, that I'd thought of, but "the first" project although used in =
others is still in development(not finished). And still if possible, I =
wouldn't wanna make a JAR everytime I change something(until finished).=20
This is also because, when I make the final JAR for the latest projects, =
I want the first Project(JAR or Classes) to be included also.
Thanks,
><))))=BA> ><))))=BA> ><))))=BA> ><))))=BA> ><))))=BA>
[PT]Pedro <soundtech @ hotpop (dot) com>
><))))=BA> ><))))=BA> ><))))=BA> ><))))=BA> ><))))=BA>
"nikolaus heger" <heger@geomi.com> wrote in message =
news:bu3f2b$drj$1@eclipse.org...
this is a common occurrence. you need classes from other projects. =
another
terminology would be you are using libraries. the other projects are =
the
libraries.
so what you do in ant is you build each library your project depends =
on,
then
1) pack it in a jar file
2) add the jar file to your /lib directory (delete the existing one =
first)
3) add these jars to the classpath for the executable
voila!
there are other ways to do that, but this is the most common one. most
importantly, you never create copies of your source files (which would =
be a
recipe for disaster).
nik
"s0undt3ch" <soundtech@n-o---s-p-a-m.hotpop.com> wrote in message
news:bu2638$uj0$1@eclipse.org...
Hi there All!
For those who use Eclipse, that almost shurelly uses Ant also, how can =
I
(imagine the scenario):
- I created a project with some classes(still in development =
improvements,
so it keeps changing), that are used in, for example 3 or 4, other =
projects,
so these are dependent of the first.
When running on the applet, everything works great, the classes from =
the
first project are included at run-time, but if I build one of the =
latest
projects, the classes used(from the 1st) aren't included on the pdb, =
how can
I do this? Of course, without copying the classes from one project to =
the
other....
Must be something on build.xml. Is it possible for ant to know an =
Eclipse
project properties?
Thanks,
><))))=BA> ><))))=BA> ><))))=BA> ><))))=BA> ><))))=BA>
[PT]Pedro <soundtech @ hotpop (dot) com>
><))))=BA> ><))))=BA> ><))))=BA> ><))))=BA> ><))))=BA>
------=_NextPart_000_0008_01C3DAAB.C49333B0
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"MSHTML 6.00.2734.1600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DVerdana size=3D2>Well, that I'd thought of, but "the =
first"=20
project although used in others is still in development(not finished). =
And still=20
if possible, I wouldn't wanna make a JAR everytime I change =
something(until=20
finished). </FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>This is also because, when I make the =
final JAR=20
for the latest projects, I want the first Project(JAR or Classes) to be =
included=20
also.</FONT></DIV>
<DIV>
<DIV>
<P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </P>
<P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">Thanks,</P>
<P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><FONT face=3D"Courier =
New"=20
color=3D#009999 size=3D2>><))))=BA> =
><))))=BA> =20
><))))=BA> ><))))=BA> =20
><))))=BA></FONT></P></DIV>
<DIV><FONT face=3D"Courier New" size=3D2> =
<STRONG><FONT=20
color=3D#3366cc>[PT]</FONT><FONT color=3D#003366>Pedro</FONT></STRONG> =
<FONT=20
color=3D#808080><soundtech @ hotpop (dot) com><BR></FONT><FONT=20
color=3D#009999>><))))=BA> ><))))=BA> =20
><))))=BA> ><))))=BA> =20
><))))=BA></FONT></FONT></DIV>
<P> </P></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"nikolaus heger" <<A=20
href=3D"mailto:heger@geomi.com">heger@geomi.com</A>> wrote in =
message <A=20
=
href=3D"news:bu3f2b$drj$1@eclipse.org">news:bu3f2b$drj$1@eclipse.org</A>.=
...</DIV>this=20
is a common occurrence. you need classes from other projects.=20
another<BR>terminology would be you are using libraries. the other =
projects=20
are the<BR>libraries.<BR><BR>so what you do in ant is you build each =
library=20
your project depends on,<BR>then<BR><BR>1) pack it in a jar file<BR>2) =
add the=20
jar file to your /lib directory (delete the existing one first)<BR>3) =
add=20
these jars to the classpath for the =
executable<BR><BR>voila!<BR><BR>there are=20
other ways to do that, but this is the most common one. =
most<BR>importantly,=20
you never create copies of your source files (which would be =
a<BR>recipe for=20
disaster).<BR><BR> nik<BR><BR>"s0undt3ch" <<A=20
=
href=3D"mailto:soundtech@n-o---s-p-a-m.hotpop.com">soundtech@n-o---s-p-a-=
m.hotpop.com</A>>=20
wrote in message<BR><A=20
=
href=3D"news:bu2638$uj0$1@eclipse.org">news:bu2638$uj0$1@eclipse.org</A>.=
...<BR>Hi=20
there All!<BR>For those who use Eclipse, that almost shurelly uses Ant =
also,=20
how can I<BR>(imagine the scenario):<BR><BR>- I created a project with =
some=20
classes(still in development improvements,<BR>so it keeps changing), =
that are=20
used in, for example 3 or 4, other projects,<BR>so these are dependent =
of the=20
first.<BR><BR>When running on the applet, everything works great, the =
classes=20
from the<BR>first project are included at run-time, but if I build one =
of the=20
latest<BR>projects, the classes used(from the 1st) aren't included on =
the pdb,=20
how can<BR>I do this? Of course, without copying the classes from one =
project=20
to the<BR>other....<BR>Must be something on build.xml. Is it possible =
for ant=20
to know an Eclipse<BR>project=20
properties?<BR><BR>Thanks,<BR>><))))=BA> =
><))))=BA> =20
><))))=BA> ><))))=BA> =20
><))))=BA><BR> [PT]Pedro <soundtech @ =
hotpop (dot)=20
com><BR>><))))=BA> ><))))=BA> =20
><))))=BA> ><))))=BA> =20
><))))=BA><BR><BR></BLOCKQUOTE></BODY ></HTML>
------=_NextPart_000_0008_01C3DAAB.C49333B0--
|
|
|
Goto Forum:
Current Time: Thu May 08 02:18:26 EDT 2025
Powered by FUDForum. Page generated in 0.06750 seconds
|