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
<[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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
>> > [email protected]
>> > http://osflash.org/mailman/listinfo/osflash_osflash.org
>>
>>
>>
>> --
>> _____________
>> Marcelo Volmaro
>>
>> _______________________________________________
>> osflash mailing list
>> [email protected]
>> http://osflash.org/mailman/listinfo/osflash_osflash.org
>>
>
>
> --
> EnFlash - It's all about features...
> http://www.asual.com/enflash/
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
--
_____________
Marcelo Volmaro
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org