Use a local configuration
file to avoid typing (and perhaps incorrectly typing) the source
path and class names on the command line. Add the -load-config option
to the acompc command line to load the local configuration file.
The following example
illustrates a configuration for building a library with two classes,
ParticleManager and Particle, both in the package: com.adobe.samples.particles.
The class files are located in the source/com/adobe/samples/particles folder.
<flex-config>
<compiler>
<source-path>
<path-element>source</path-element>
</source-path>
</compiler>
<include-classes>
<class>com.adobe.samples.particles.ParticleManager</class>
<class>com.adobe.samples.particles.Particle</class>
</include-classes>
</flex-config>
To compile the library
using the configuration file, named ParticleLib-config.xml,
type:
acompc -load-config ParticleLib-config.xml -output ParticleLib.swc
To run the same command
entirely on the command line, type:
acompc -source-path source -include-classes com.adobe.samples.particles.Particle
com.adobe.samples.particles.ParticleManager -output ParticleLib.swc
(Type the entire command
on one line, or use the line continuation character for your command
shell.)