Ant didn't include image resource into classpath?

2007-09-22 Thread RogerL
hi guys, i have this package view/MyFrame.java view/res/home.gif In MyFrame.java, i try to load the image using ImageIcon ic = new ImageIcon("view/res/home.gif"); using eclipse ide, everything works fine, but when i use ant script to do the job, the image didn't appear. my build xml

Re: Iterating a class list

2007-09-22 Thread Bill Rich
Hi James. Take a look at the Ant task or the antContrib task either of which could be useful to you for this particular case. HTH Bill James Griggs wrote: I am looking for way to iterate through a property that contains a semicolon delimited list of libraries (jars). The property could co

Iterating a class list

2007-09-22 Thread James Griggs
I am looking for way to iterate through a property that contains a semicolon delimited list of libraries (jars). The property could contain zero or more items. What I wish to do is to break the list into its individual items and perform a particular task on it. I have thus far been unable to

Re: getting filename from dir listing

2007-09-22 Thread Gilbert Rebhan
Mario Madunic wrote: Thanks Gilbert. I ran a test of your script and received the following error. sorry was untested, use = str=File.basename(Dir["J:/test/*.xml"].sort[0]).gsub(/(\w{8}).+/, '\1')
$project.setProperty "myproperty"