ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 6119] - When building ejbjar for Borland Appserver ANThangs on win2000
Date Tue, 25 Jun 2002 03:52:17 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6119>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6119

When building ejbjar for Borland Appserver ANThangs on win2000





------- Additional Comments From cmedappa@icope.com  2002-06-25 03:52 -------
This problem also Occurs on Windows NT . The problem occurs depending on the 
order 
in which the deployment descriptor's are processed ,if ANT tries to process ejb-
inprise.xml first and then ejb-jar.xml the problem occurs.

     I used a fix which make's ANT process the ejb-jar.xml first then continue 
     with other.

I applied the fix to [org.apache.tools.ant.taskdefs.optional.ejb.EjbJar.java ]

After the fix the code looks as below

	DirectoryScanner ds = getDirectoryScanner(config.descriptorDir);
	ds.scan();
	String[] files = ds.getIncludedFiles();
	**********************************************************
		   FIX START
	**********************************************************
	int ePos=-1;
	for (int index = 0; index < files.length; ++index) {
		if(files[index].equals("ejb-jar.xml")){
		     ePos=index;
		     break;
		}
	}
	if(ePos>0){
		String temp=files[0];
		files[0]=files[ePos];
		files[ePos]=temp;
	}
	**********************************************************
		   FIX END
	**********************************************************
	log(files.length + " deployment descriptors located.",  
Project.MSG_VERBOSE);


AFTER THIS CHANGES USE ANT TO BUILD ANT :)
*******************************************************************************
NOTE : You can do without this fix also if you alter file time of ejb-jar.xml 
or ejb-inprise.xml making one older than the other. It works , but it may not 
work allways ;)
*******************************************************************************

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message