Re: xmlc 2.2 alpha 4

David Li <[email protected]>
Newsgroups gmane.comp.java.enhydra.xmlc
Message-ID <[email protected]>
> What part of the build is dependent on Ant-1.4.1?  The only thing I've  
> found is that if you don't have JUnit-3.8.1 in ANT_HOME/lib then the  
> build fails even if you aren't running tests.  For instance, I just  
> ran "ant clean" and got this...
>
> BUILD FAILED
> file:D:/myclasses/Repository/Enhydra/XMLC_DSF_2003-03-12/xmlc/ 
> libraries/util/mod
> ules/junitTivano/build.xml:79: taskdef class  
> org.apache.tools.ant.taskdefs.optio
> nal.junit.JUnitTask cannot be found
>
> However, with that jar in ANT_HOME/lib, I build XMLC just fine with  
> Ant-1.5.2.  Where is the Ant-1.4.1 dependency?  I suggest getting rid  
> of the extra modules such as JUnit.  The problem is classloading.   
> Since most current Ant releases come with "optional.jar" in  
> ANT_HOME/lib, the optional task require their dependencies at the same  
> level in the classloader hierarchy.  In this case <junit> requires  
> junit.jar to be in the same classloader.  The parent classloader can't  
> see junit libraries to load in a child classloader.  Really, I'd get  
> rid of Ant and Junit as modules.  Actually, You might think of getting  
> rid of gnu-regexp as a module.  We haven't modified that at all, have  
> we?
>

I had problem running Unit tests with 1.5. Some class not found error  
which I haven't gotten around to track.

There are no reason to keep gnu.regexp as source. Should just include  
the jar.

>> 2. It would be great to have an Ant taskdef that creates the HTML  
>> LazyDOMs as I don't build under Linux/Unix.
>>
>> Yes, I agree. Any one know a good ant task that would do string  
>> substitution?
>
> Well, Ant can filter copy stuff just fine.  I haven't looked at the  
> source for the strings, but are they something like @some_token@ ?   
> That is pretty simple to do in Ant.  In fact, if you look at the xmlc  
> tomcat demo build.xml, there is lots of that going on.

Nope. the are not @some_token@. They are straight string like  
"org.apache.dom.html." I think I am looking for something 'sed' like  
taskdef for Ant.

David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.