On Jun 15, 2009, at 8:37 PM, Chuck Hill wrote:


On Jun 15, 2009, at 5:19 PM, David Avendasora wrote:


On Jun 15, 2009, at 6:28 PM, Chuck Hill wrote:


Maybe. Which task is this for? What does your build.xml say for this task?

build.woapp.

And lookie there:

                        <lib dir="Libraries">
                                <include name="*.jar" />
                        </lib>

I checked, and this little gem is in the build.xml file of all the App and Framework project templates.

The new ones?  I wonder if that is a left over from pre-New Hotness.

Yep. Nightly as of a couple nights ago.

I'm guessing there's a reason that it just loads everything in Libraries, but it's counterintuitive when the incremental builder doesn't do that. Not as far as I can tell, anyway.

I am leaning more towards cruft that never bit anyone before.

I just love being the guy that this kind of stuff bites. Maybe I'm just willing to look like an idiot and ask... :-)

Is that right? Even if there are files in the Libraries directory, that doesn't automatically put them on the classpath, you still have to add them, so I wouldn't think that Ant should be specifically going out of it's way to find them there.

Reality is that which when you stop believing in it refuses to go away.

:-P

The same should hold true for /Library/WebObjects/Extensions/ if people shouldn't be putting stuff in there, and it seems to cause a lot of confusion, why go and automatically load everything in there?

For compatibility with how the runtime works. Just because people say that you should not be putting things in there, does not mean that other people will listen.

Can we at least make Ant write "You moron! There's stuff in the WebObjects/Extensions directory. Get rid of it." into the console if the directory isn't empty? It would have only mildly hurt my feelings yesterday, but would have saved me a few hours time.

We could, but that would entail messing about in the WOProject code. That ranks somewhere around "double root canal" in terms of fun.

Yeah, it was kind of a rhetorical question....

Second, I added an external .jar file to my project, it shows up in the .classpath file in the project, but Ant is _not_ loading that one. Why?

How did you add it?  What does it look like in the .classpath file?

In the Build Path properties window I clicked the "Add External JARs" button and selected it. It is the client-side jar of EODistribution (Since WOLips doesn't automatically add the client- side jars to the classpath when you add a framework to the build path).

<classpathentry kind="lib" path="/Developer/WebObjects/bestmaid/ System/Library/Frameworks/JavaEODistribution.framework/Versions/A/ WebServerResources/Java/JavaEODistribution.jar"/>

That sounds like a Mike question. The FQ path looks scary in the classpath, but I would have thought that New Hotness would have put these on the classpath. Is it perhaps just not _scanning_ for it as there is a FQ path?

Well, this is an "External JAR" so it would have to be fully qualified, but it appears that anything in the .classpath file that is a type="lib" get's ignored. Which may be why the build.xml file goes and grabs everything out of the Libraries directory.

Dave


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to