Re: Advanced includes/excludes for javac

2008-06-23 Thread Dominique Devienne
On Mon, Jun 23, 2008 at 2:25 PM, Roman Kennke <[EMAIL PROTECTED]> wrote: >> The only way to do this is by resetting srcdir to an empty string. >> That's the technique and others (including me) have >> used in the past. >> >> That way, Javac will compile *only* the file explicitly given to it, >> a

Re: Advanced includes/excludes for javac

2008-06-23 Thread Roman Kennke
Hi Dominique, > > I have a problem with the javac task that I cannot solve, maybe somebody > > can help me. Let's say I have a directory layout like this: > > > > src/proj1/Class1.java > > src/proj1/Class2.java > > src/proj2/Class1.java > > src/proj2/Class2.java > > > > Now I want to compile Cl

Re: Advanced includes/excludes for javac

2008-06-23 Thread Dominique Devienne
On Mon, Jun 23, 2008 at 5:40 AM, Roman Kennke <[EMAIL PROTECTED]> wrote: > I have a problem with the javac task that I cannot solve, maybe somebody > can help me. Let's say I have a directory layout like this: > > src/proj1/Class1.java > src/proj1/Class2.java > src/proj2/Class1.java > src/proj2/

Re: Advanced includes/excludes for javac

2008-06-23 Thread Scot P. Floess
Ah gotcha...makes sense :) On Mon, 23 Jun 2008, Roman Kennke wrote: Hi there, I'm at a loss... Just curious, why are you doing this or need to do this? I'm developer of a Java VM project, and we are using most of the class library from GNU Classpath or OpenJDK, and replace some pieces, lik

Re: Advanced includes/excludes for javac

2008-06-23 Thread Roman Kennke
Hi there, > I'm at a loss... > > Just curious, why are you doing this or need to do this? I'm developer of a Java VM project, and we are using most of the class library from GNU Classpath or OpenJDK, and replace some pieces, like the java.lang package (the stuff that is closest to the VM basical

Re: Advanced includes/excludes for javac

2008-06-23 Thread Steve Loughran
Roman Kennke wrote: Hi there, I have a problem with the javac task that I cannot solve, maybe somebody can help me. Let's say I have a directory layout like this: src/proj1/Class1.java src/proj1/Class2.java src/proj2/Class1.java src/proj2/Class2.java Now I want to compile Class1 from proj1

Re: Advanced includes/excludes for javac

2008-06-23 Thread Scot P. Floess
Hmm... I'm at a loss... Just curious, why are you doing this or need to do this? On Mon, 23 Jun 2008, Roman Kennke wrote: Hi Scot, Give this a try: I don't think this works because the include/exclude is always relative to the src dirs. I think I could trick it by setting the

Re: Advanced includes/excludes for javac

2008-06-23 Thread Roman Kennke
Hi Scot, > Give this a try: > > > > I don't think this works because the include/exclude is always relative to the src dirs. I think I could trick it by setting the source dir to some common top-level dir of the two subprojects, but then the javac task could not map the source to class

Re: Advanced includes/excludes for javac

2008-06-23 Thread Scot P. Floess
Give this a try: This is not something I typically do...and don't have time to test it... The javac task HTML has some more information on this... On Mon, 23 Jun 2008, Roman Kennke wrote: Hi there, I have a problem with the javac task that I cannot solve, maybe somebody can help

Advanced includes/excludes for javac

2008-06-23 Thread Roman Kennke
Hi there, I have a problem with the javac task that I cannot solve, maybe somebody can help me. Let's say I have a directory layout like this: src/proj1/Class1.java src/proj1/Class2.java src/proj2/Class1.java src/proj2/Class2.java Now I want to compile Class1 from proj1 and Class2 from proj2