Check for database submodule and give instructions for including it
if not found
This commit is contained in:
parent
8e50f5202e
commit
497f185790
@ -161,9 +161,39 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- COPY orc files from source directories to build directory -->
|
<!-- COPY orc files from source directories to build directory -->
|
||||||
<target name="copy-orc-files"
|
<target name="check-database" description="check component database">
|
||||||
|
<available file="${resources-src.dir}/datafiles/components/orc" property="database"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="copy-orc-files" depends="check-database"
|
||||||
description="Copy orc files">
|
description="Copy orc files">
|
||||||
|
|
||||||
|
<fail message="NOTE: ${line.separator}
|
||||||
|
The component database is now a submodule, and must be included into ${line.separator}
|
||||||
|
this project to build the .jar file. ${line.separator}
|
||||||
|
${line.separator}
|
||||||
|
If you retrieved this code by cloning the openrocket repository, you ${line.separator}
|
||||||
|
must initialize and update the submodule. From the command line, ${line.separator}
|
||||||
|
this can be accomplished with ${line.separator}
|
||||||
|
% git submodule init ${line.separator}
|
||||||
|
% git submodule update ${line.separator}
|
||||||
|
${line.separator}
|
||||||
|
If you retrieved this code by downloading and uncompressing a zip file, ${line.separator}
|
||||||
|
you must do the same for the submodule. Download the code ${line.separator}
|
||||||
|
from https://github.com/dbcook/openrocket-database and uncompress it.${line.separator}
|
||||||
|
Copy the files and directories under the openrocket-database-master ${line.separator}
|
||||||
|
into ${resources-src.dir}/datafiles/components/ ${line.separator}
|
||||||
|
${line.separator}
|
||||||
|
After including the database submodule, you will be able to build
|
||||||
|
${line.separator}
|
||||||
|
the .jar file
|
||||||
|
">
|
||||||
|
<condition>
|
||||||
|
<not>
|
||||||
|
<isset property="database" />
|
||||||
|
</not>
|
||||||
|
</condition>
|
||||||
|
</fail>
|
||||||
<copy todir="${resources.dir}/datafiles/presets">
|
<copy todir="${resources.dir}/datafiles/presets">
|
||||||
<fileset dir="${resources-src.dir}/datafiles/legacy_components"/>
|
<fileset dir="${resources-src.dir}/datafiles/legacy_components"/>
|
||||||
</copy>
|
</copy>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user