PDA

View Full Version : Strange errors using compc and ant


bhale
07-31-2008, 03:02 PM
I have a compnent I want to compile. I am using this ant target, but I get errors when I shouldn't.

<target name="compile">
<compc include-classes="com.sabre.stn.flex.admodule.AdComponent" output="${DEPLOY_DIR}/AdModule.swf" actionscript-file-encoding="UTF-8" keep-generated-actionscript="true" incremental="true"
include-sources="com.sabre.stn.flex.admodule.AdHolder.as com.sabre.stn.flex.admodule.IDataSourceReceiver.as com.sabre.stn.flex.admodule.AdServerDataSource.as" >
<!-- load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" / -->
<source-path path-element="${SRC_ROOT}/com/sabre/stn/flex/admodule" />
</compc>
</target>

Here is the error, although documentation says that this error can't be right.

BUILD FAILED
C:\workspace\AdModule\build\build.xml:17: The <compc> type doesn't support the "include-sources" attribute.

If I try to use this
<include-sources path-element="${somepath}" />

I get this error
BUILD FAILED
C:\workspace\AdModule\build\build.xml:17: The <include-sources> type doesn't support the "path-element" attribute.