Repository navigation
Description
This issue was originally created at: 2005-05-11 09:18:21.
This issue was reported by: lim_1.
lim_1 said at 2005-05-11 09:18:21
This patch introduces Multi-Step Java Builders.
I tried it with latest May 10, 2005 CVS. I decided to
submit full files instead of diff, whihh is difficult to apply if
original file changed.
I also attached Java build example which uses all new
features.
I hope this can be used as a start for better Java support
in SCons.
I have started Twiki page with more info on this patch
and example.
http://www.scons.org/cgi-bin/wiki/JavaSupport
issues@scons said at 2005-09-17 12:51:01
Hi Leanid--
I just started trying to integrate this. Is there any way
that it can make use of some common logic from Tool/zip.py
so that it's not directly and solely dependent on the
zipfile module? That makes it not compatible with older
Python versions.--SK
lim_1 said at 2005-09-20 13:57:37
I don't think it will work in this form. The problem is that
location should be different between original source and
inside of .war file. I have to remove some part of path or
relocate some others. It's easy with internal zip.
There are two different options:
- cd to neccessary directory and try to call external zip from
there. Will not work if source file should be moved to different
directory. For example If jar file in C:\3rd\my.jar I will not be
able to put into WEB-INF/lib/my.jar- Second option will work: copy whole war image into TMP
directory and call external zip on it. This can be done, but it's
ugly.- Maybe third if you know how to change location in .war
(.zip) file with external zip command, I checked man on zip
and could not find it.
Note: my TWiki page (http://www.scons.org/cgi-
bin/wiki/JavaSupport
) with some info is cleared. Not even history left. If you have
any questions on this Java patch I will be glad to provide it.
issues@scons said at 2005-09-20 13:57:37
Converted from SourceForge tracker item 1199961
stevenknight said at 2006-05-26 04:22:10
Created an attachment (id=31)
Source changes, copied from SourceForge tracker.
stevenknight said at 2006-05-26 04:22:47
Created an attachment (id=32)
Test case, copied form SourceForge tracker.
stevenknight said at 2007-08-07 15:24:06
Integrated for next release. MANY thanks for this patch.
I have not included the war.py builder. I'm not comfortable with using the
zipfile module to do this by hand, since it won't work for earlier Python
versions, and also doesn't match the Sun documentation for how to generate WAR
files by hand. Pages like the following:Indicate that WAR files should be generated by calling jar. And even if it
amounts to the same thing under the covers, I think it will be less magical to
end-users if it's done in a similar fashion.That's just my opinion, though. To make sure that issue stays tracked, I'm
going to open up a separate Issue for adding a WAR builder, and I'll attach the
war.py module today.
stevenknight attached Tool.zip at 2008-03-25 11:08:15.
Source changes, copied from SourceForge tracker.
stevenknight attached project.zip at 2008-03-25 11:08:15.
Test case, copied form SourceForge tracker.
stevenknight said this issue blocks #1664 at 2007-08-07 15:24:06.
Activity