Skip to content

Commit

Permalink
Merge branch 't/spurious-warnings-in-build' of gregorydlogan/opencast…
Browse files Browse the repository at this point in the history
… into r/15.x

Pull request opencast#5678

  Remove Spurious Warnings During Build
  • Loading branch information
gregorydlogan committed Mar 20, 2024
2 parents 92d512c + 84b91af commit 96bc2b4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions assemblies/dist-develop/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<opencast.basedir>${project.basedir}/../..</opencast.basedir>
<packaging.definition>${project.basedir}/target/classes/package.xml</packaging.definition>
<enableJobDispatching>true</enableJobDispatching>
<enableDeveloperMode>true</enableDeveloperMode>
</properties>
<artifactId>opencast-dist-develop</artifactId>
<packaging>karaf-assembly</packaging>
Expand Down
1 change: 1 addition & 0 deletions assemblies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
<ant antfile="../resources/build.xml">
<target name="basic configuration"/>
<target name="job dispatching"/>
<target name="developer mode"/>
</ant>
</target>
</configuration>
Expand Down
16 changes: 10 additions & 6 deletions assemblies/resources/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,10 @@
<concat destfile="target/assembly/etc/system.properties" append="true">
<filelist dir="../resources" files="system.properties.append"/>
</concat>
<concat destfile="target/assembly/etc/shell.init.script" append="true">
<filelist dir="resources" files="shell.init.script.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"/>
<!-- 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&gt;.*&lt;/baseDirectory&gt;" replace="includeBaseDirectory&gt;false&lt;/includeBaseDirectory&gt;" byline="true"/>
</target>

<target if="enableJobDispatching" name="job dispatching">
Expand All @@ -34,4 +28,14 @@
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&gt;.*&lt;/baseDirectory&gt;" replace="includeBaseDirectory&gt;false&lt;/includeBaseDirectory&gt;" byline="true"/>
</target>
</project>

0 comments on commit 96bc2b4

Please sign in to comment.