[osflash] [ANN] EnLarge - One code base to rule them all
Stéphane Bebrone
shaoken at gmail.com
Wed Mar 15 03:00:50 EST 2006
Hi Marcelo,
I ran into the same error and I thought that you must set an "env" param to
get compil.
<target name="--pp" description="ActionScript preprocessor" >
<enlarge srcdir="${basedir}/src"
includes="**/*.jappo"
destdir="${basedir}/test"
listfiles="on"
config="${basedir}/enlarge.xml"
/>
</target>
<target name="pp">
<antcall target="--pp" >
<param name="env" value="fp8"/>
</antcall>
</target>
Hope that help you!
2006/3/14, Marcelo Volmaro <mvolmaro at gmail.com>:
>
> Rostislav,
> I can´t make enlarge work in eclipse. I always get a
> "java.lang.NullPointerException" at the enlarge line.
> Here´s my ant script:
>
> <?xml version="1.0" encoding="utf-8"?>
> <project name="Oncall" default="compileMTASC">
> <!-- user modifiable properties -->
> <property name="dir.lib" value="c:/Tools/eclipse/preprocessor"/>
> <property name="global.header" value="config.h"/>
>
> <property name="version" value="2"/>
>
> <property name="mainFile" value="main8.swf"/>
>
> <property name="SWFFile" value="${basedir}\library\${mainFile}"/>
> <property name="OUTFile" value="${basedir}\deploy\${mainFile}"/>
>
> <property name="ASFile" value="Engine.as"/>
> <property name="classPath" value="${basedir}\src"/>
> <property name="ppclassPath" value="${basedir}\pp_src"/>
> <property name="MacromediaClassPath" value="C:\Documents and
> Settings\Administrator\Local Settings\Application Data\Macromedia\Flash
> 8\en\Configuration\Classes\FP8"/>
>
> <taskdef resource="net/sf/antcontrib/antcontrib.properties">
> <classpath>
> <pathelement location="${dir.lib}/ant-contrib.jar
> "/>
> </classpath>
> </taskdef>
>
> <taskdef resource="com/asual/enlarge/enlarge.properties">
> <classpath>
> <pathelement location="${dir.lib}/enlarge.jar"/>
> <pathelement location="${dir.lib}/jappo.jar"/>
> <pathelement location="${dir.lib}/xalan.jar"/>
> </classpath>
> </taskdef>
>
> <target name="compileMTASC">
>
> <enlarge srcdir="${classPath}" includes="**/*.as"
> destdir="${ppclassPath}" listfiles="on" config="${dir.lib}/enlarge.xml" />
>
> <exec executable="C:\Tools\mtasc\mtasc.exe"
> failonerror="true">
> <arg value="${ppclassPath}\${ASFile}"/>
>
> <arg value="-cp"/>
> <arg value="${ppclassPath}"/>
>
> <arg value="-cp"/>
> <arg value="${MacromediaClassPath}"/>
>
> <arg value="-swf"/>
> <arg value="${SWFFile}"/>
>
> <arg value="-out"/>
> <arg value="${OUTFile}"/>
>
> <arg value="-version"/>
> <arg value="8"/>
> </exec>
> <exec executable="cmd">
> <arg value="/c ${OUTFile}"/>
> </exec>
> </target>
> </project>
>
>
> On Tue, 14 Mar 2006 09:14:32 -0300, Rostislav Hristov
> <rostislav.hristov at gmail.com> wrote:
>
> > Hi Marcelo,
> >
> > a new release that supports global header/footer includes is
> > available. You can download it at
> > http://www.asual.com/download/?enlarge
> >
> > There was a minor issue with Eclipse that is now also fixed. EnLarge
> > comes with Jappo included and actually you need to configure a project
> > that is equivalent to the Hello World sample.
> >
> > If you want to build enlarge.jar the setup is the same as with Jappo.
> >
> > Rostislav
> >
> >
> > On 3/13/06, Marcelo Volmaro <mvolmaro at gmail.com> wrote:
> >> I want to include a file well, yes, at the beggining of each file.
> >> And another question... EnLarge works fine under eclipse? Should i
> >> configure it the same way as jappo? Should i remove jappo and add
> >> EnLarge?
> >>
> >> > @Marcelo
> >> >
> >> > I just made some experiments with the !import macro. I couldn't make
> >> > it to import a file with a full path provided.
> >> >
> >> > I suppose you want to include a header/footer file, otherwise it will
> >> > be hard to specify which line number should be used for importing.
> >> >
> >> > I've made this working by adding the following properties in
> >> > samples/helloworld/build.properties:
> >> >
> >> > # Header content
> >> > global.header=c://tools//header.as
> >> >
> >> > # Footer content
> >> > global.footer=c://tools//footer.as
> >> >
> >> > Let me know it this works for you and I'll try to release a new
> >> version
> >> > ASAP.
> >> >
> >> >
> >> > Cheers,
> >> > Rostislav
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > EnFlash - It's all about features...
> >> > http://www.asual.com/enflash/
> >> >
> >> > _______________________________________________
> >> > osflash mailing list
> >> > osflash at osflash.org
> >> > http://osflash.org/mailman/listinfo/osflash_osflash.org
> >>
> >>
> >>
> >> --
> >> _____________
> >> Marcelo Volmaro
> >>
> >> _______________________________________________
> >> osflash mailing list
> >> osflash at osflash.org
> >> http://osflash.org/mailman/listinfo/osflash_osflash.org
> >>
> >
> >
> > --
> > EnFlash - It's all about features...
> > http://www.asual.com/enflash/
> >
> > _______________________________________________
> > osflash mailing list
> > osflash at osflash.org
> > http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
>
> --
> _____________
> Marcelo Volmaro
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
--
Regards,
Stéphane Bebrone
--------------------------
Flash | ASP.NET | Web Developer
http://weblog.shaoken.be
--------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20060315/bf71a8cf/attachment-0001.htm
More information about the osflash
mailing list