Browse Source

Switch to basic ant copy filter for web.xml

tags/v1.6.0
James Moger 10 years ago
parent
commit
dcd6541d4e
2 changed files with 19 additions and 9 deletions
  1. 18
    4
      build.xml
  2. 1
    5
      src/main/java/WEB-INF/web.xml

+ 18
- 4
build.xml View File

@@ -174,8 +174,19 @@
<property name="go.dir" value="${project.outputDirectory}/go" />
<delete dir="${go.dir}" />
<local name="webinf" />
<property name="webinf" value="${project.compileOutputDirectory}/WEB-INF" />
<prepareDataDirectory toDir="${go.dir}/data" />
<!-- Copy the web.xml from the prototype web.xml -->
<copy todir="${webinf}" overwrite="true">
<fileset file="${project.src.dir}/WEB-INF/web.xml" />
<filterset>
<filter token="gb.version" value="${project.version}" />
</filterset>
</copy>
<!-- Build jar -->
<mx:jar destfile="${go.dir}/gitblit.jar" includeresources="true">
<mainclass name="com.gitblit.GitBlitServer" />
@@ -240,10 +251,13 @@
<!-- Prepare the data directory -->
<prepareDataDirectory toDir="${webinf}/data" />
<!-- Build the WAR web.xml from the prototype web.xml -->
<mx:webxml sourcefile="${project.src.dir}/WEB-INF/web.xml" destfile="${webinf}/web.xml">
<replace token="@gb.version@" value="${project.version}" />
</mx:webxml>
<!-- Copy the web.xml from the prototype web.xml -->
<copy todir="${webinf}" overwrite="true">
<fileset file="${project.src.dir}/WEB-INF/web.xml" />
<filterset>
<filter token="gb.version" value="${project.version}" />
</filterset>
</copy>
<!-- Gitblit jar -->
<mx:jar destfile="${webinf}/lib/gitblit.jar" includeresources="false" />

+ 1
- 5
src/main/java/WEB-INF/web.xml View File

@@ -30,12 +30,8 @@
</env-entry>
<!-- Gitblit Displayname -->
<display-name>
Gitblit - @gb.version@
</display-name>
<display-name>Gitblit - @gb.version@</display-name>
<!-- PARAMS -->
<!-- Gitblit Context Listener --><!-- STRIP
<listener>

Loading…
Cancel
Save