Project dependencies and folders

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Project dependencies and folders

Thibaut Colar
First of all, let me say Thank you for this nice App and taking the time
to make it very clean and easy to use (nice use of AJAX!)

I would like to know what is the recommended way to resolve my issue.
I have 2 ant projects (well more but for simplicity sake, say 2)
My project 1 is a HUGE set of java code/library (from SAP), it is set in
it's own project because
- It never changes (well except when we do a full upgrade maybe once a year)
- it is huge so i don't want to have to update it from SVN all the time
has it takes ages.

My second project(project2) is built on top of project1 (depends project
1), this is our custom code.
It is much more compact and changes a lot, so needs to be c/o out of SVN
and built all the time (by Hudson)

My problem is i either do:
1) in Hudson i get both of those modules into the same Hudson project,
then the dependencies work (ie: in ant classpath="../project1/lib/")
because both modules where checked out in the same folder by Hudson.
Nut then i have the issue that both modules need to have the same Hudson
SVN properties and thus both will have to be fully checked out for each
built (takes ages)

2) In Hudson i create two projects, one for each svn module, i set
module1/project1 to only do SVN update(not full c/o) and build almost never.
I set module2/project2 to do full SVN c/o and builds very often.
This would be the way i would like this to work, but it fails because
things like (classpath="../project1/lib") wil not work as both modules
are not in the same directory(workspace)
ex: C:\Documents and Settings\thibautc\.hudson\jobs\project1\workspace vs
C:\Documents and Settings\thibautc\.hudson\jobs\project2\workspace

Is there any simple solution/workaround to this issue ??

Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Project dependencies and folders

Kohsuke Kawaguchi
Administrator
Thibaut Colar wrote:

> 2) In Hudson i create two projects, one for each svn module, i set
> module1/project1 to only do SVN update(not full c/o) and build almost never.
> I set module2/project2 to do full SVN c/o and builds very often.
> This would be the way i would like this to work, but it fails because
> things like (classpath="../project1/lib") wil not work as both modules
> are not in the same directory(workspace)
> ex: C:\Documents and Settings\thibautc\.hudson\jobs\project1\workspace vs
> C:\Documents and Settings\thibautc\.hudson\jobs\project2\workspace
>
> Is there any simple solution/workaround to this issue ??
I'd tweak the build script so that the path to project1 can be changed
by specifying an Ant property. Then you can refer to
../../project1/ws/project1/lib or some such.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Project dependencies and folders

Thibaut Colar
Yeah that is what i just did actually.
Works great, thanks.

Kohsuke Kawaguchi wrote:

> Thibaut Colar wrote:
>> 2) In Hudson i create two projects, one for each svn module, i set
>> module1/project1 to only do SVN update(not full c/o) and build almost
>> never.
>> I set module2/project2 to do full SVN c/o and builds very often.
>> This would be the way i would like this to work, but it fails because
>> things like (classpath="../project1/lib") wil not work as both modules
>> are not in the same directory(workspace)
>> ex: C:\Documents and
>> Settings\thibautc\.hudson\jobs\project1\workspace vs
>> C:\Documents and Settings\thibautc\.hudson\jobs\project2\workspace
>>
>> Is there any simple solution/workaround to this issue ??
>
> I'd tweak the build script so that the path to project1 can be changed
> by specifying an Ant property. Then you can refer to
> ../../project1/ws/project1/lib or some such.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Project dependencies and folders

Jesse Glick
Thibaut Colar wrote:
> Yeah that is what i just did actually.
> Works great, thanks.

Also a tip: it is possible to use something along the lines of
../../someOtherProject/lastSuccessfulBuild/artifacts/something.jar to
refer to the output of another project when using Ant builds.

-J.

--
[hidden email]  netbeans.org  ant.apache.org  hudson.dev.java.net
             http://google.com/search?q=e%5E%28pi*i%29%2B1

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Project dependencies and folders

Jean-Baptiste Quenot
In reply to this post by Thibaut Colar
I'm  using symbolic  links  for  this. The  "workspace"  is not  a
directory, but a link to the module's location in the repository.
--
     Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]