This repository has been archived on 2026-04-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
LiveCartaMeta/build/build.xml
2023-02-07 12:19:06 +03:00

44 lines
1.5 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="@lcDbUsername@" value="${lcDbUsername}"/>
<replace file="../.env.sample" token="@lcDbPassword@" value="${lcDbPassword}"/>
<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>