> >>In  the flex sdk folder, there is also the file : 
> >>flexTasks.tasks
> >>It contains :
> >>mxmlc=flex.ant.MxmlcTask
> >>compc=flex.ant.CompcTask
> >>html-wrapper=flex.ant.HtmlWrapperTask
> > 
> > Best place for that file is IN the jar ...
> > Could you check if the jar contains that too?
> > 
> 
> I very don't know how to do it !
> the jar file is compiled,may be it can be see in the java 
> "source" folder of the flex folder,
> but there is a lot of think on it and I don't know how all this think
> work...


Because JAR is only a ZIP file with special entries, you could open
it with any ZIP program (WinZip, 7zip, ...). Just see if there is an 
entry "/flexTasks.task" (in the root directory).




> > IMO you should
> > - create a directory "antlibs" in your project
> > - place the flexTasks.jar and flexTasks.tasks files there
> > - use <tasksdef resource="flexTasks.tasks" classpath="antlibs"/>
> > 
> 
> I did this and it seem to had resolve a part of the problem 
> as I don't have anymore my first error message, 
> but know I got a new one :
> 
> BUILD FAILED
> /home/ordi/Bureau/Telechargements/scite-as3/sample/build.xml:3
> : taskdef
> class flex.ant.CompcTask cannot be found


Ok, here the directory layout I suggested:
    |
    | build.xml
    | build.properties
    |
    +-- antlib
    ...     flexTasks.jar
            flexTasks.tasks

And build.xml contains
    <project ... basedir="."> <!-- or no 'basedir' -->
        ...
        <tasksdef resource="flexTasks.tasks" classpath="antlibs"/>
        ...

And flexTasks.tasks contains
    mxmlc=flex.ant.MxmlcTask
    compc=flex.ant.CompcTask
    html-wrapper=flex.ant.HtmlWrapperTask

So ./antlib/flexTasks.jar must contain "/flex/ant/MxmlcTask.class",
"/flex/ant/ComcTask.class"
and "/flex/ant/HtmlWrapperTask.class". (Test with ZIP-Program).


(Maybe you want to try a (Java+Ant) tutorial for warming up with Ant.
http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html but this
requires
a basic knowledge of Java. But the sources are all there.)






> I saw that there is a problem with compcTask on linux on this page :
> http://labs.adobe.com/wiki/index.php/Talk:Flex_Ant_Tasks labsadobe 
> near the end of the page : Problem with compc task on linux ('unknown
> configuration variable compiler.source-path'
> But I don't know if it could have a link with my problem, I 
> don't understand what they say... :-)

quotes:
   "The compc task fails on linux (but works on windows) with the error:

    ...
   [compc] command line: Error: unknown configuration variable
'compiler.source-path .'
    ..."

   "I fixed this by changing the compc script as follows:
      java $VMARGS -jar "$FLEX_HOME/lib/compc.jar"
+flexlib="$FLEX_HOME/frameworks" "$@"
    to:
      java $VMARGS -jar "$FLEX_HOME/lib/compc.jar"
+flexlib="$FLEX_HOME/frameworks" $@
    i.e. removing the quotes from the variable arguments passed to
Java."


This is not Ant or Java related. The author changed the wrapper script,
Adobe provides to call the compc compiler. The last argument of the
instruction was "passing all parameters from the command line to the
java program": $...@. The original quoted this "@*" which result in ONE
parameter for Java. Without the quotes $@ Java gets multiple values. And
this seems to be required.

I dont know if you use that wrapper script (a Unix batch file).
But I you get the same error and you use the script, you could give it a
try.



Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to