Skip to content

Commit b6fe4e2

Browse files
Damodar ReddyAbhinandan Prateek
authored andcommitted
CLOUDSTACK-6105: Fixed the issue where Logs were not getting generated properly
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
1 parent 4ebb92c commit b6fe4e2

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

scripts/installer/windows/acs.wxs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@
8080
</Component>
8181
</Directory>
8282
</DirectoryRef>
83-
<!-- DirectoryRef Id="WEBAPPS"> <Directory Id="clientId" FileSource="client\WEB-INF\classes">
84-
<Component Id="copyAllToConf" Guid="0e081e69-5c30-426e-b711-b7750115f62b"
85-
KeyPath="yes"> <CopyFile Id="AllFiles" DestinationDirectory="CONF" SourceName="*"
86-
/> </Component> </Directory> </DirectoryRef -->
8783
<DirectoryRef Id="WEBAPPS">
8884
<Component Id="copyToConf" Guid="99da8926-1eec-4a7f-ac7f-1326d8e73ea0"
8985
KeyPath="yes">
@@ -185,8 +181,6 @@
185181
</Component>
186182

187183
<!-- Updating Tomcat's catalina base -->
188-
<!-- Property Id='TomcatDirectory' Value="$(env.CATALINA_HOME)\bin\Tomcat6.exe"
189-
/ -->
190184
<Property Id='TOMCATDIRECTORY'>
191185
<RegistrySearch Id="TomcatSearch" Name="InstallPath"
192186
Root="HKLM" Key="SOFTWARE\Apache Software Foundation\Tomcat\6.0\Tomcat6"
@@ -195,16 +189,24 @@
195189
<CustomAction Id="TomcatPath" Property="TOMCATDIRECTORY1"
196190
Value="[TOMCATDIRECTORY]\bin\Tomcat6.exe">
197191
</CustomAction>
198-
192+
199193
<Condition
200194
Message="Apache tomcat6 is not installed please do install tomcat6 first"><![CDATA[(Installed OR TOMCATDIRECTORY)]]></Condition>
201195
<CustomAction Id="UpdateTomcatCatalinaBase"
202-
ExeCommand="//US//Tomcat6 --JvmOptions=-Dcatalina.base=[INSTALLDIR];-Xms512m;-Xmx1024m;-XX:MaxPermSize=512m"
196+
ExeCommand='//US//Tomcat6 --JvmOptions=-Dcatalina.base=[INSTALLDIR];-Djava.io.tmpdir=[INSTALLDIR]\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Dcatalina.home="[TOMCATDIRECTORY]";-Xms512m;-Xmx1024m;-XX:MaxPermSize=512m'
203197
Property="TOMCATDIRECTORY1" Execute="commit" Return="check" />
198+
<CustomAction Id="UpdateTomcatClassPath"
199+
ExeCommand='//US//Tomcat6 --Classpath="[TOMCATDIRECTORY]\bin\bootstrap.jar";"[TOMCATDIRECTORY]\bin\tomcat-juli.jar";[INSTALLDIR]\conf'
200+
Property="TOMCATDIRECTORY1" Execute="commit" Return="check" />
201+
<CustomAction Id="DeleteFiles" Directory='INSTALLDIR'
202+
ExeCommand="[SystemFolder]cmd.exe /c del [INSTALLDIR]\webapps\client\WEB-INF\classes\db.properties [INSTALLDIR]\webapps\client\WEB-INF\classes\log4j*.xml"
203+
Execute="commit" Return="check" />
204204
<InstallExecuteSequence>
205205
<InstallServices Sequence="4999"></InstallServices>
206-
<Custom Action="TomcatPath" Before="UpdateTomcatCatalinaBase">NOT Installed</Custom>
206+
<Custom Action="TomcatPath" Before="UpdateTomcatClassPath">NOT Installed</Custom>
207+
<Custom Action="UpdateTomcatClassPath" Before="UpdateTomcatCatalinaBase">NOT Installed</Custom>
207208
<Custom Action="UpdateTomcatCatalinaBase" Before="InstallFinalize">NOT Installed</Custom>
209+
<Custom Action="DeleteFiles" Before="InstallFinalize">NOT Installed</Custom>
208210
</InstallExecuteSequence>
209211
<UIRef Id="WixUI_Mondo" />
210212
<Feature Id='Complete' Title='ACS' Description='The complete package.'

0 commit comments

Comments
 (0)