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, Constantiner mailto:[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: [email protected] MC> [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss MC> Sent: Tuesday, January 30, 2007 6:02 PM MC> To: [email protected] 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.tasks">mxmlc=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/

