Re[2]: [flexcoders] Recompiling flex ant tasks
Hello Matt, Sure it will be better to add possibility of ponting custom html-wrappers without including them to jar and modifying HtmlWrapperTask class. -- Best regards, Constantinermailto:[EMAIL PROTECTED] MC Modifying the templates or the tasks is absolutely fine according MC to the license, and if you want to distribute those changes it is MC fine. I will forward in the fact that we have a bug to the engineers. MC MC MC MC Matt MC MC From: flexcoders@yahoogroups.com MC [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss MC Sent: Tuesday, January 30, 2007 6:02 PM MC To: flexcoders@yahoogroups.com MC Subject: Re: [flexcoders] Recompiling flex ant tasks MC MC Hi Konstantine, MC MC The build file was the solution. MC MC But I have to grieve you about including new hyml-templates in jar. MC You can't do it without modifying HtmlWrapperTask.java class. All the MC six templates are hardcoded in the class. I see only two ways to do MC it: MC - modifying existing template and rebuilding jar. MC - modifying HtmlWrapperTask clas! s. MC MC Don't sure if license allows it. MC MC I have added my new template to the resources folder and modified MC the HtmlWrapperTask Class and all works fine. MC MC As i don't intend to distribute this modified version of the MC flexTasks.jar or src, this should not be in breach of any license criteria? MC MC regards, MC Bjorn MC MC On 30/01/2007, at 7:30 PM, Constantiner wrote: MC MC Hello Bjorn, MC MC You are right - there are some errors in build.xml in Flex Ant Tasks MC package from Adobe Labs. It not include html-templates in resulting MC jar. Here modified build.xml which produce working jar: MC MC ?xml version=1.0? MC MC project name=Flex Ant Tasks default=main basedir=. MC MC property MC file=local.properties/ MC MC target name=main depends=clean, jar / MC MC target name=compile MC fail MC condition MC not MC isset MC property=ANT_HOME / MC /not MC /condition MC Error! MC You need to set ANT_HOME property (path to Ant dir) MC in local.properties file MC located in the same dir as build.xml! MC For example: MC ANT_HOME = D:\\Program Files\\ANT\\ MC /fail MC mkdir dir=classes / MC javac MC classpath=${ANT_HOME}/lib MC srcdir=src MC destdir=classes/ MC /target MC MC target name=jar depends=compile MC copy todir=resources/html-templates/ MC fileset dir=resources/ MC includes=**/ MC /copy MC echo file=flexTasks.tasksmxmlc=flex2.ant.MxmlcTask MC compc=flex2.ant.CompcTask MC html-wrapper=flex2.ant.HtmlWrapperTask/echo MC jar destfile=lib/flexTasks.jar MC fileset dir=. MC includes=flexTasks.tasks / MC fileset dir=classes MC includes=**/*.class, flexTasks.tasks/ MC fileset dir=. MC includes=resources/html-templates/** / MC /jar MC delete dir=resources/html-templates/ / MC delete file=flexTasks.tasks / MC /target MC MC target name=clean MC delete dir=classes / MC !-- Clean up VIM and Emacs backup files -- MC delete MC fileset dir=src includes=**/*~ defaultexcludes=false / MC /delete MC /target MC /project MC MC But I have to grieve you about including new hyml-templates in jar. MC You can't do it without modifying HtmlWrapperTask.java class. All the MC six templates are hardcoded in the class. I see only two ways to do MC it: MC - modifying existing template and rebuilding jar. MC - modifying HtmlWrapperTask class. MC MC Don't sure if license allows it. MC MC -- MC Best regards, MC Constantiner mailto:[EMAIL PROTECTED] MC BS Hey all, BS BS I wanted to add new html templates to the html-wrapper tasks within BS the flex_ant_tasks. BS I added them the Java src, recompiled the flexTasks jar and when BS running my ant builds all fail. BS I tried to compile an 'unchanged' version of the flexTasks src and it BS still fails. BS BS It seems the jar supplied in the zip is 72kb and after a build the BS new jar is only 32kb. BS BS Can anyone suggest a solution here? BS BS regards, BS BS Bjorn MC -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Recompiling flex ant tasks
Hello Bjorn, You are right - there are some errors in build.xml in Flex Ant Tasks package from Adobe Labs. It not include html-templates in resulting jar. Here modified build.xml which produce working jar: ?xml version=1.0? project name=Flex Ant Tasks default=main basedir=. property file=local.properties/ target name=main depends=clean, jar / target name=compile fail condition not isset property=ANT_HOME / /not /condition Error! You need to set ANT_HOME property (path to Ant dir) in local.properties file located in the same dir as build.xml! For example: ANT_HOME = D:\\Program Files\\ANT\\ /fail mkdir dir=classes / javac classpath=${ANT_HOME}/lib srcdir=src destdir=classes/ /target target name=jar depends=compile copy todir=resources/html-templates/ fileset dir=resources/ includes=**/ /copy echo file=flexTasks.tasksmxmlc=flex2.ant.MxmlcTask compc=flex2.ant.CompcTask html-wrapper=flex2.ant.HtmlWrapperTask/echo jar destfile=lib/flexTasks.jar fileset dir=. includes=flexTasks.tasks / fileset dir=classes includes=**/*.class, flexTasks.tasks/ fileset dir=. includes=resources/html-templates/** / /jar delete dir=resources/html-templates/ / delete file=flexTasks.tasks / /target target name=clean delete dir=classes / !-- Clean up VIM and Emacs backup files -- delete fileset dir=src includes=**/*~ defaultexcludes=false / /delete /target /project But I have to grieve you about including new hyml-templates in jar. You can't do it without modifying HtmlWrapperTask.java class. All the six templates are hardcoded in the class. I see only two ways to do it: - modifying existing template and rebuilding jar. - modifying HtmlWrapperTask class. Don't sure if license allows it. -- Best regards, Constantinermailto:[EMAIL PROTECTED] BS Hey all, BS BS I wanted to add new html templates to the html-wrapper tasks within BS the flex_ant_tasks. BS I added them the Java src, recompiled the flexTasks jar and when BS running my ant builds all fail. BS I tried to compile an 'unchanged' version of the flexTasks src and it BS still fails. BS BS It seems the jar supplied in the zip is 72kb and after a build the BS new jar is only 32kb. BS BS Can anyone suggest a solution here? BS BS regards, BS BS Bjorn
Re: [flexcoders] Flex Ant Tasks
Hi Bjorn! You can download as example the simple sample from my article about Flex and Ant (http://webddj.sys-con.com/read/310378.htm) but applied to Flex Ant Tasks. Download link for modified example here: http://www.riapriority.com/flex/samples/flex_ant_test.zip I use mxmlc and html-wrapper tasks in the example. Good luck! -- Best regards, Constantinermailto:[EMAIL PROTECTED] BS Has anyone got this working? BS BS I keep getting the same error, Could not create task or type of type: BS mxmlc. BS BS I have followed the instructions to the letter. BS BS Regards, BS BS Bjorn
Re: [flexcoders] Re: Using mxmlc.jar w/ ANT - SOLVED
You can use more elegant and crossplatform example of build.xml in this preloader example: http://mxdj.sys-con.com/read/274849.htm -- Best regards, Constantinermailto:[EMAIL PROTECTED] PS Figured it out. Had to change things a bit but it appears to be working. PS target name=Administrator PS java jar=${mxmlc.jar} fork=true PS arg value=-local-fonts-snapshot/ PS arg value=${flexsdk.home}/frameworks/winFonts.ser/ PS arg value=-load-config/ PS arg value=${basedir}/build/administrator-config.xml/ PS arg line='${basedir}/as3/Administrator.mxml'/ PS /java PS /target PS Paul Spitzer wrote: In my attempt to use mxmlc.jar w/ ANT I found that the following error is reported... defaults: Error: unable to open './winFonts.ser'. I found the file in the Flex SDK 2\frameworks directory and modified my java task. My target looks like (note the dir)... target name=Administrator java jar=${mxmlc.jar} fork=true dir=${flexsdk.home}/frameworks arg line=-load-config '${basedir}/build/administrator-config.xml'/ arg line='${basedir}/as3/Administrator.mxml'/ /java /target The problem now is that my relative source paths in my config don't resolve properly. path-elementas3/path-element I'd really rather not make those absolute paths. Any ideas? Many thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Downloading documentation
WdB Does anyone know a way to download the livedocs? I will gone from the WdB internet from a while, and I would love to have a reference. You can download docs bundle with langref and pdf docs: http://www.adobe.com/go/flex_documentation_zip -- Best regards, Constantinermailto:[EMAIL PROTECTED] Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/