forked from opencast/opencast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
41 lines (39 loc) · 2.65 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<project name="Selenium" basedir=".">
<target name="basic configuration">
<echo>Basic configuration</echo>
<!-- Make sure to deactivate JMX by default -->
<replaceregexp file="target/assembly/bin/karaf" match="-Dcom.sun.management.jmxremote" replace="" byline="true"/>
<replaceregexp file="target/assembly/bin/inc" match="-Dcom.sun.management.jmxremote" replace="" byline="true"/>
<!-- Correct the start script name -->
<replaceregexp file="target/assembly/bin/karaf" match="^KARAF_SCRIPT=.*$" replace="KARAF_SCRIPT='start-opencast'" byline="true"/>
<!-- Make sure bundle cache gets cleared by default -->
<replaceregexp file="target/assembly/etc/system.properties" match="^karaf.clean.cache .*=.*$" replace="karaf.clean.cache = true" byline="true"/>
<!-- Disable feature auto refresh (it's broken rn, see #5151) -->
<replaceregexp file="target/assembly/etc/org.apache.karaf.features.cfg" match="^autoRefresh=\s*.*$" replace="autoRefresh=false" byline="true"/>
<!-- Additional config lines to system.properties -->
<concat destfile="target/assembly/etc/system.properties" append="true">
<filelist dir="../resources" files="system.properties.append"/>
</concat>
<!-- Adding extra OSGi system packages to configuration -->
<replace file="target/assembly/etc/config.properties" token="org.osgi.framework.system.packages= \" value="org.osgi.framework.system.packages= com.sun.image.codec.jpeg, com.sun.jndi.ldap, \"/>
<!-- Disabled write permissions on karaf configuration by deactivating config saves -->
<replaceregexp file="target/assembly/etc/config.properties" match="^felix.fileinstall.enableConfigSave .*=.*$" replace="felix.fileinstall.enableConfigSave = false" byline="true"/>
</target>
<target if="enableJobDispatching" name="job dispatching">
<echo>Enabling job dispatching</echo>
<replaceregexp
file="target/classes/etc/org.opencastproject.serviceregistry.impl.JobDispatcher.cfg"
match="^#dispatch.interval=0$"
replace="dispatch.interval=2"
byline="true" />
</target>
<target if="enableDeveloperMode" name="developer mode">
<echo>Enabling developer mode</echo>
<concat destfile="target/assembly/etc/shell.init.script" append="true">
<filelist dir="resources" files="shell.init.script.append"/>
</concat>
<!-- Special configuration for development -->
<replaceregexp file="target/classes/package.xml" match="tar\.gz" replace="dir" byline="true"/>
<replaceregexp file="target/classes/package.xml" match="baseDirectory>.*</baseDirectory>" replace="includeBaseDirectory>false</includeBaseDirectory>" byline="true"/>
</target>
</project>