This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant path issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant path issue" Watch "Ant path issue" New topic
Author

Ant path issue

Nikos Stavros
Ranch Hand

Joined: Feb 24, 2006
Posts: 243

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


Jesus lives
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

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?)


JBoss In Action
Nikos Stavros
Ranch Hand

Joined: Feb 24, 2006
Posts: 243

thanks Pete, i decided to just build to local dir and use ant tasks to move them to deploy.
Nikos Stavros
Ranch Hand

Joined: Feb 24, 2006
Posts: 243

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

Joined: May 14, 2008
Posts: 5836
    
    7

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

Joined: Feb 24, 2006
Posts: 243

I see, man 3 days of ant programing for windows is painful!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

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

Joined: Feb 24, 2006
Posts: 243

cool thanks!
 
GeeCON Prague 2014
 
subject: Ant path issue