mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-02-06 21:30:06 +00:00
Tighten up the ant task a bit
This commit is contained in:
parent
0935e13c51
commit
821e7c7977
@ -82,7 +82,7 @@
|
||||
<appleCommander command="x" imagename="${pro140image}" outputpath="${projdir}/work/dist" />
|
||||
<echo message="Files should be exported to the current working directory now." />
|
||||
<!-- Now, try out converting -->
|
||||
<appleCommander command="convert" filename="C:\David\Asimov\images\gs\utils\DiskCommander.GS.sdk" imagename="${projdir}/work/dist/test.po" />
|
||||
<appleCommander command="convert" filename="images\gs\utils\DISK.WITCH3.1.0.SHK" imagename="${projdir}/work/dist/test.po" sizeblocks="2000"/>
|
||||
</target>
|
||||
|
||||
<target name="clean" description="Get rid of testing artifacts.">
|
||||
|
@ -45,7 +45,7 @@ public class AntTask extends Task
|
||||
* dos140: <imagename> <volname>
|
||||
* pro140/pro800: <imagename> <volname>
|
||||
* pas140/pas800: <imagename> <volname>
|
||||
* convert: <filename> <imagename>
|
||||
* convert: <filename> <imagename> [<sizeblocks>]
|
||||
*/
|
||||
if (_command.equals("i"))
|
||||
{
|
||||
@ -226,7 +226,7 @@ public class AntTask extends Task
|
||||
{
|
||||
try
|
||||
{
|
||||
com.webcodepro.applecommander.ui.ac.convert(_fileName, _imageName);
|
||||
com.webcodepro.applecommander.ui.ac.convert(_fileName, _imageName, Integer.parseInt(_sizeBlocks));
|
||||
}
|
||||
catch (IOException io)
|
||||
{
|
||||
@ -282,6 +282,11 @@ public class AntTask extends Task
|
||||
_address = address;
|
||||
}
|
||||
|
||||
public void setSizeBlocks(String sizeBlocks)
|
||||
{
|
||||
_sizeBlocks = sizeBlocks;
|
||||
}
|
||||
|
||||
public void setFailOnError(String failonerror)
|
||||
{
|
||||
if (failonerror.equalsIgnoreCase("true"))
|
||||
@ -307,4 +312,6 @@ public class AntTask extends Task
|
||||
String _type = null;
|
||||
|
||||
String _address = "0x2000";
|
||||
|
||||
String _sizeBlocks = "0";
|
||||
}
|
||||
|
@ -534,7 +534,7 @@ public class ac {
|
||||
*
|
||||
* DiskCopy 4.2 image - convert it to a ProDOS image
|
||||
* SDK disk image - unpack it to a disk image
|
||||
* ShrinkIt file bundle [future] - unpack files onto a disk image sized to fit
|
||||
* ShrinkIt file bundle - unpack files onto a disk image sized to fit
|
||||
*/
|
||||
static void convert(String shrinkName, String imageName)
|
||||
throws IOException {
|
||||
@ -546,7 +546,7 @@ public class ac {
|
||||
*
|
||||
* DiskCopy 4.2 image - convert it to a ProDOS image
|
||||
* SDK disk image - unpack it to a disk image
|
||||
* ShrinkIt file bundle - unpack files onto a disk image sized to fit
|
||||
* ShrinkIt file bundle - unpack files onto a disk image sized to fit, or as specified in numbers of blocks
|
||||
*/
|
||||
static void convert(String shrinkName, String imageName, int imageSize)
|
||||
throws IOException {
|
||||
|
Loading…
x
Reference in New Issue
Block a user