[as2api-dev] Re: multiple classpaths using Ant

Jim Kremens kremens at gmail.com
Wed Sep 14 18:11:18 UTC 2005


Actually, everything seems to be working pretty well.  It was failing
to document my .com package, and i blamed it on as2api.  I didin't
write the classes in my .com package, and they are kind of dodgy, so
I'm guessing that as2api doesn't like something in one of the files in
there...  Would you like me to pass them along for testing?

That said, it's now doing a wonderful job of documenting my stuff. 
Here's my revised Ant task, which allows you to pass in multiple
packages using package-spec.  I hadn't read that part of the
documentation carefully enough...

	<target name="document">
		<exec executable="${as2api}" failonerror="false">
			<arg line='package-spec org.* package-spec unit.*' />
			<arg line='--classpath "${dist}" --classpath "${macromedia_classes}"' />
			<arg line='--output-dir "${docs}"' />
			<arg line='--sources' />
			<arg line='--draw-diagrams --dot-exe "${graphviz}"' />
		</exec>
		<delete file="${docs}/style.css" />
		<copy file="../utilities/style.css" todir="${docs}" />
	</target>

I think the program is getting pretty solid... Nice work.

Jim

On 9/14/05, David Holroyd <dave at badgers-in-foil.co.uk> wrote:
> On Tue, Sep 13, 2005 at 03:20:21PM -0400, Jim Kremens wrote:
> > Hi David,
> >
> > I'm really enjoying using as2api.  I hope my comments about the
> > stylesheet did not offend!
> 
> Not at all!  Just been too busy to write a proper reply.
> 
> 
> > Anyway, I'm trying to send multiple packages to as2api, but can't seem
> > to get it working.  Here's my Ant task:
> >
> >       <target name="document">
> >               <exec executable="${as2api}" failonerror="false">
> >                       <arg value='org.flashcodersny.*'/>
> >                       <arg line='--classpath "${dist}" --classpath "${macromedia_classes}"'/>
> >                       <arg line='--output-dir "${docs}"'/>
> >                       <arg line='--sources'/>
> >                       <arg line='--draw-diagrams --dot-exe "${graphviz}"'/>
> >               </exec>
> >               <delete file="${docs}/style.css" />
> >               <copy file="../utilities/style.css" todir="${docs}"/>
> >       </target>
> 
> What is it that actually goes wrong?  Error message?  Unexpected output?
> 
> Can you get ant to show you exactly the command line it tries to execute,
> and post that too?
> 
> 
> > Note that I'm passing in ''org.flashcodersny.*'  What I'd really like
> > to do is pass in org.* to get all of the packages in org.  Is that
> > possible?  If not, what syntax should I use to pass in multiple
> > packages?
> 
> If you always want to document all classes packaged under 'org/..', then
> you should indeed be able to just use 'org.*'.  When you start making
> use of other libs which are also in the org namespace, this may not be
> desirable though.
> 
> 
> thanks,
> dave
> 
> _______________________________________________
> as2api-dev mailing list
> as2api-dev at lists.badgers-in-foil.co.uk
> http://lists.badgers-in-foil.co.uk/mailman/listinfo/as2api-dev
>



More information about the as2api-dev mailing list