1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors-chili

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
build.xml 3.8 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Andrea Ercolino Отправлено 01.04.2010 22:13 bba199a
<project name="Chili" default="chili" basedir=".">
<tstamp prefix="start" />
<loadfile property="version" srcfile="version.txt" />
<property
name="dist"
value="./dist"
description="Folder for built and minified Chili, with examples" />
<property
name="CHILI"
value="${dist}/jquery.chili.js" />
<property
name="CHILI_MIN"
value="${dist}/jquery.chili.min.js" />
<target
description="Development build: concatenated"
name="chili">
<echo message="Building ${CHILI}" />
<delete dir="${dist}" />
<mkdir dir="${dist}" />
<copy
file="jquery/jquery-1.4.2.js"
tofile="${dist}/jquery.js" />
<concat destfile="${CHILI}">
<fileset file="src/_begin.js" />
<fileset file="src/user_options.js" />
<fileset file="src/runner.js" />
<fileset file="src/global.js" />
<fileset file="src/core.js" />
<fileset file="src/element.js" />
<fileset file="src/recipes.js" />
<fileset file="src/coloring.js" />
<fileset file="src/stylesheets.js" />
<fileset file="src/html.js" />
<fileset file="src/lines.js" />
<fileset file="src/filters.js" />
<fileset file="src/text_selection.js" />
<fileset file="src/_end.js" />
</concat>
<!--
<concat destfile="${dist}/jquery.chili.recipes.js">
<fileset file="src/recipes/jquery.chili.recipes.php.js" />
<fileset file="src/recipes/jquery.chili.recipes.html.js" />
<fileset file="src/recipes/jquery.chili.recipes.css.js" />
<fileset file="src/recipes/jquery.chili.recipes.js.js" />
</concat>
-->
<copy
file="src/jquery.chili.recipes.js"
tofile="${dist}/jquery.chili.recipes.js" />
<mkdir dir="${dist}/recipes" />
<copy todir="${dist}/recipes">
<fileset dir="src/recipes" />
</copy>
<mkdir dir="${dist}/examples" />
<copy todir="${dist}/examples">
<fileset dir="src/examples" />
</copy>
<replaceregexp
match="@VERSION"
replace="${version}"
flags="g"
byline="true"
file="${CHILI}" />
<replaceregexp
match="@DATE"
replace="${start.DSTAMP} ${start.TSTAMP}"
file="${CHILI}" />
<echo message="${CHILI} built." />
</target>
<target description="Production build: minified"
name="chili.min"
depends="chili">
<echo message="Building ${CHILI_MIN}" />
<apply executable="java" parallel="false" verbose="true" dest="${dist}">
<fileset dir="${dist}">
<include name="jquery.chili.js" />
</fileset>
<arg line="-jar" />
<arg path="build/compiler.jar" />
<arg value="--warning_level" />
<arg value="QUIET" />
<arg value="--js_output_file" />
<targetfile />
<arg value="--js" />
<mapper type="glob" from="jquery.chili.js" to="tmpmin" />
</apply>
<concat destfile="${CHILI_MIN}">
<filelist files="${CHILI}" />
<filterchain>
<headfilter lines="11" />
</filterchain>
</concat>
<concat destfile="${CHILI_MIN}" append="yes">
<filelist files="dist/tmpmin"/>
</concat>
<delete file="dist/tmpmin"/>
<echo message="${CHILI_MIN} built." />
</target>
<target name="clean">
<delete dir="${dist}" />
</target>
</project>

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mirrors-chili.git
git@api.gitlife.ru:oschina-mirror/mirrors-chili.git
oschina-mirror
mirrors-chili
mirrors-chili
master