• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ant path issue

 
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see, man 3 days of ant programing for windows is painful!
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
cool thanks!
 
reply
    Bookmark Topic Watch Topic
  • New Topic