forked from LiveCarta/LiveCartaMeta
42 lines
1.3 KiB
XML
42 lines
1.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project name="LiveCarta MetaData project" default="full-build">
|
|
|
|
|
|
<target name="build"
|
|
depends="replace, archive"
|
|
description="Performs static analysis, runs the tests, and generates project documentation"/>
|
|
|
|
|
|
<target name="replace"
|
|
unless="replace.done"
|
|
description="Replace placeholders in config files" >
|
|
<replace file="../.env.sample" token="@lcDbName@" value="${lcDbName}"/>
|
|
<replace file="../.env.sample" token="@lcDbHost@" value="${lcDbHost}"/>
|
|
|
|
<replace file="../.env.sample" token="@lcApiUrl@" value="${lcApiUrl}"/>
|
|
<replace file="../.env.sample" token="@lcApiKey@" value="${lcApiKey}"/>
|
|
|
|
<property name="replace.done" value="true"/>
|
|
</target>
|
|
|
|
<target name="copy"
|
|
unless="copy.done"
|
|
description="Replace placeholders in config files" >
|
|
<copy file="../.env.sample" tofile="../.env"/>
|
|
|
|
<property name="copy.done" value="true"/>
|
|
</target>
|
|
|
|
|
|
<target name="archive">
|
|
<tar compression="gzip" destfile="lc_meta.tar.gz" longfile="posix">
|
|
<tarfileset dir="${basedir}/..">
|
|
<include name="*/**" />
|
|
<exclude name="build/**" />
|
|
</tarfileset>
|
|
</tar>
|
|
</target>
|
|
|
|
</project>
|
|
|