Well, I have everything finally working with my Ant build, but one
final deployment part.
What I need to do is this:
<!-- DEPLOY TARGET -->
<target name="deploy" description="Deploy to server via ftp">
<!-- Gather files to deploy -->
<unzip src="${build.dir}/${cod.name}.cod" dest="${dist.dir}"/>
<copyfile dest="${dist.dir}"
src="${build.dir}/${cod.name}.jad"/>
<ftp server="berrysoft.net" userid="berrysof"
password="1emorthen1"
remotedir="public_html/downloads" action="send">
<fileset dir="${dist.dir}" casesensitive="yes">
<include name="**/*.cod" />
<include name="${cod.name}.jad" />
</fileset>
</ftp>
</target>
but there is one problem. In some cases, the .cod file create by javc
(bb-ant-tools) does not need to be unzipped. (See when a .cod is
larger than a certain defined threshold, it gets broken into multiple
cods then zipped up, but for OTA deployment, any such cod must be
unzipped for deployment).
So, in short, I need to be able to either move the file as is, or if I
determine it can be unzipped, unzip it to the dist.dir.
Problem is, I have no idea how I can determine if it needs to be unzipped!
Ideas?
Patrick
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]