Skip to content

Commit

Permalink
#58: using exploded war for console
Browse files Browse the repository at this point in the history
=> allow for tweaking/configuring!
=> allow for bom
  • Loading branch information
ypujante committed Jul 1, 2013
1 parent 18ab943 commit f4ab2d3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 24 deletions.
30 changes: 8 additions & 22 deletions console/org.linkedin.glu.console-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,24 +77,23 @@ cmdline {
// licenses
resources << [ packageIncludes ]

// console.war
// jetty
resources << [
from: consoleWebapp,
into: new File(assemblePackageFile, 'glu/repository/wars'),
from: tarTree(jettyArchive),
replaceTokens: false
]

// sample-webapp.war
// exploded console
resources << [
from: sampleWebapp,
into: new File(assemblePackageFile, 'glu/repository/wars'),
from: zipTree(consoleWebapp),
into: new File(assemblePackageFile, "glu/repository/exploded-wars/${consoleWebappProject.name}-${consoleWebappProject.version}"),
replaceTokens: false
]

// keys
// sample-webapp.war
resources << [
from: consoleKeys,
into: new File(assemblePackageFile, 'keys'),
from: sampleWebapp,
into: new File(assemblePackageFile, 'glu/repository/wars'),
replaceTokens: false
]

Expand All @@ -116,16 +115,3 @@ cmdline {
}
}
}

File basePackage = project.convention.plugins.cmdline.assemblePackageFile

/********************************************************
* task: package-assemble
* customizing package-assemble task to include jetty
********************************************************/
project.'package-assemble'.doFirst {
// fetch/untar jetty distribution
ant.untar(src: configurations.jetty.resolve().toList()[0],
dest: basePackage,
compression: 'gzip')
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Call class="org.eclipse.jetty.util.log.Log" name="debug"><Arg>Configure console-jetty-context.xml</Arg></Call>
<Set name="contextPath">${consoleMetaModel.internalPath}</Set>
<Set name="war"><%= configTokens.consoleWarPath ?: "<SystemProperty name=\"org.linkedin.glu.console.root\"/>/glu/repository/wars/org.linkedin.glu.console-webapp-${consoleMetaModel.version}.war" %></Set>
<Set name="war"><%= configTokens.consoleWarPath ?: "<SystemProperty name=\"org.linkedin.glu.console.root\"/>/glu/repository/exploded-wars/org.linkedin.glu.console-webapp-${consoleMetaModel.version}" %></Set>
<Set name="tempDirectory"><SystemProperty name="org.linkedin.glu.console.root"/>/tmp</Set>
<Set name="extraClasspath"><SystemProperty name="org.linkedin.glu.console.plugins.classpath"/></Set>
</Configure>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ JVM_SIZE="-Xmx555m"
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Call class="org.eclipse.jetty.util.log.Log" name="debug"><Arg>Configure console-jetty-context.xml</Arg></Call>
<Set name="contextPath">/console</Set>
<Set name="war"><SystemProperty name="org.linkedin.glu.console.root"/>/glu/repository/wars/org.linkedin.glu.console-webapp-${GLU_VERSION}.war</Set>
<Set name="war"><SystemProperty name="org.linkedin.glu.console.root"/>/glu/repository/exploded-wars/org.linkedin.glu.console-webapp-${GLU_VERSION}</Set>
<Set name="tempDirectory"><SystemProperty name="org.linkedin.glu.console.root"/>/tmp</Set>
<Set name="extraClasspath"><SystemProperty name="org.linkedin.glu.console.plugins.classpath"/></Set>
</Configure>
Expand Down

0 comments on commit f4ab2d3

Please sign in to comment.