File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant path issue

 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, this <echo>${deploy.debug}/main.swf</echo>

gives me X:/Inetpub/wwwroot/FLEX/debug/main.swf

but this:

<mxmlc
file="${project.src}/main.mxml"
output="${deploy.debug}/main.swf"

locale="${LOCALE}"
static-rsls="false"
accessible="false"
use-network="false"
>

gives an error:

[mxmlc] Error: C:\p4\\ant\=X:\Inetpub\wwwroot\FLEX\debug\main.swf (The filename, directory name, or volume label syntax is incorrect)

BUILD FAILED
C:\p4\\ant\CustomBuild.xml:48: mxmlc task failed

any ideas how to fix? the path is correct
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried running Ant with the -X option to see if the mxmlc task provides additional debug output? It looks like that task runs an external command and it screwed up the command syntax.

Since this task is not part of Ant, but an extension written by Adobe, you might have to ask Adobe about it. (Or do you know if there is source code available for this task?)
 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Pete, i decided to just build to local dir and use ant tasks to move them to deploy.
 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi again, any idea why this doesn't work?

<delete dir="${build}" excludes="*.cache"/>

my main.swf.cache file is deleted, while its folder in "${build}" is not.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deleting is very picky. If you tell it to include or exclude specific files, then it deletes only files. If you know which directory contains the *.cache file, you can specify that instead. For example, assume all of the *.cache files are in a directory named temp. Then the delete would look like:



(By the way, your last sentence doesn't match the delete command you gave, so I assumed that the sentence was correct and the delete command contained a typo)
 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see, man 3 days of ant programing for windows is painful!
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are new to Ant and plan to use it for a while, I really recommend you get a book such as Ant in Action. It is really good about explaining all of the intricacies and contains a lot of helpful example projects.
 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cool thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic