Lines 118-124
Link Here
|
118 |
/** constructor */ |
118 |
/** constructor */ |
119 |
public Jar() { |
119 |
public Jar() { |
120 |
super(); |
120 |
super(); |
121 |
archiveType = "jar"; |
121 |
archiveType = "JAR"; |
122 |
emptyBehavior = "create"; |
122 |
emptyBehavior = "create"; |
123 |
setEncoding("UTF8"); |
123 |
setEncoding("UTF8"); |
124 |
rootEntries = new Vector(); |
124 |
rootEntries = new Vector(); |
Lines 603-609
Link Here
|
603 |
|
603 |
|
604 |
ZipOutputStream zOut = null; |
604 |
ZipOutputStream zOut = null; |
605 |
try { |
605 |
try { |
606 |
log("Building MANIFEST-only jar: " |
606 |
log("Building manifest-only JAR: " |
607 |
+ getDestFile().getAbsolutePath()); |
607 |
+ getDestFile().getAbsolutePath()); |
608 |
zOut = new ZipOutputStream(new FileOutputStream(getDestFile())); |
608 |
zOut = new ZipOutputStream(new FileOutputStream(getDestFile())); |
609 |
|
609 |
|
Lines 616-622
Link Here
|
616 |
initZipOutputStream(zOut); |
616 |
initZipOutputStream(zOut); |
617 |
finalizeZipOutputStream(zOut); |
617 |
finalizeZipOutputStream(zOut); |
618 |
} catch (IOException ioe) { |
618 |
} catch (IOException ioe) { |
619 |
throw new BuildException("Could not create almost empty JAR archive" |
619 |
throw new BuildException("Could not create almost empty JAR" |
620 |
+ " (" + ioe.getMessage() + ")", ioe, |
620 |
+ " (" + ioe.getMessage() + ")", ioe, |
621 |
getLocation()); |
621 |
getLocation()); |
622 |
} finally { |
622 |
} finally { |
Lines 665-670
Link Here
|
665 |
mergeManifestsMain = false; |
665 |
mergeManifestsMain = false; |
666 |
manifestFile = null; |
666 |
manifestFile = null; |
667 |
index = false; |
667 |
index = false; |
|
|
668 |
archiveType = "JAR"; |
669 |
emptyBehavior = "create"; |
670 |
setEncoding("UTF8"); |
668 |
} |
671 |
} |
669 |
|
672 |
|
670 |
public static class FilesetManifestConfig extends EnumeratedAttribute { |
673 |
public static class FilesetManifestConfig extends EnumeratedAttribute { |