Показать сообщение отдельно
Старый 01.03.2012, 08:52
terbooter вне форума Посмотреть профиль Отправить личное сообщение для terbooter Найти все сообщения от terbooter
  № 1  
Ответить с цитированием
terbooter

Регистрация: Oct 2006
Адрес: Novosibirsk-Kaliningrad
Сообщений: 1,278
Отправить сообщение для terbooter с помощью ICQ Отправить сообщение для terbooter с помощью Skype™
По умолчанию Как избавиться от повтора в ант скрипте

Есть ант скрипт, компиляет swc и генерит доки

Код:
<target name="swc" >
        <compc output="bin/${ant.project.name}.swc">
            <include-sources dir="src/main" includes="*" />

            <external-library-path dir="${swc.lib}" append="true">
                <include name="as3-signals-v0.7.swc" />
                <include name="components.swc" />
                <include name="as3corelib.swc" />
            </external-library-path>
        </compc>
    </target>


    <target name="html-docs">
        <asdoc output="doc"  failonerror="true" >
            <compiler.source-path path-element="src/main"/>
            <doc-sources path-element="src/main"/>

            <external-library-path dir="${swc.lib}" append="true">
                <include name="as3-signals-v0.7.swc" />
                <include name="components.swc" />
                <include name="as3corelib.swc" />
            </external-library-path>
        </asdoc>
    </target>
Как избавиться от повторения описания внешних библиотек?
То есть описать вот этот блок единожды
Код:
<external-library-path dir="${swc.lib}" append="true">
                <include name="as3-signals-v0.7.swc" />
                <include name="components.swc" />
                <include name="as3corelib.swc" />
            </external-library-path>