-
1. Re: Hot deployment classes after debug="false"
piotr.sobczyk Dec 15, 2009 12:04 AM (in response to piotr.sobczyk)So I should just keep seam debug mode activated all the time or keep all the source files in main source directory and stop using hot deployment? What's the correct answer?
-
2. Re: Hot deployment classes after debug="false"
kragoth Dec 15, 2009 1:16 AM (in response to piotr.sobczyk)I stopped using Hot Deployment a while ago as it seemed to cause more issues then it solved. But, from my understanding you should always be deploying from your
main
area and then use hot deployment as a debugging tool.However, I would recommend getting better info from someone who actually uses this functionality successfully.
-
3. Re: Hot deployment classes after debug="false"
piotr.sobczyk Dec 15, 2009 11:59 AM (in response to piotr.sobczyk)Thanks, Tim. I guess I will add a targets to build script that copies all the packages from hot deployment source directory to main source directory before production deployment and that copies them back to hot when I'm coming back to development.
-
4. Re: Hot deployment classes after debug="false"
piotr.sobczyk Jan 27, 2010 5:15 PM (in response to piotr.sobczyk)And how are other people handling this problem. Do you use hot deployment? If so, do you have a special build tool targets that moves components between main and hot areas everytime you want to enable hot deployment/switch to production mode? Or you don't use hot deployment at all? Any hints?
-
5. Re: Hot deployment classes after debug="false"
piotr.sobczyk Jan 27, 2010 5:22 PM (in response to piotr.sobczyk)And how others do to handle this problem? Do you have special build tool target to move Seam components back and forth between main and hot area? Or you don't use hot deployment at all? Any hints/personal experiences?
-
6. Re: Hot deployment classes after debug="false"
mana.hotmana76.gmail.com Jan 27, 2010 9:39 PM (in response to piotr.sobczyk)Look at Getting started with hot deployment.
You can find inspiration in seam-gen generated application, where is in build-dev.properties setting for action.dir property.
Anyway hot deployment doesn't work if you have debug=false.
-
7. Re: Hot deployment classes after debug="false"
piotr.sobczyk Jan 29, 2010 3:38 PM (in response to piotr.sobczyk)Thanks, Marek! Now I see that in Seamgen project switching from debug to production deployment is as simple as changing in build-dev.properties debug to false and action.dir to /WEB-INF/classes.
But what with JBoss Tools users? They aren't deploying by build script and can't change such properties. I know that I can drive my JBoss Tools project by Ant Scripts but It's not the best for me, because:
1) First I have to create build script by hand from scratch
2) I feel very comfortable with deploying application from Servers view -
8. Re: Hot deployment classes after debug="false"
mana.hotmana76.gmail.com Jan 29, 2010 4:51 PM (in response to piotr.sobczyk)I am not expert on JBoss Tools, but I know that components.xml by default has got debug set to true.
For setting of hot deployment I think that JBoss Tools uses a configuration wizard at the time of creating Seam Web project. After that it can be viewed on Project properties dialog in Java Build Path settings in Source tab, see Output folder for source folder,
In case of WAR type of Seam project, Source folder is src/hot and its output is directed to WebContent/WEB-INF/dev. I haven't tried to change this setting so I don't know if it works if you do it.
-
9. Re: Hot deployment classes after debug="false"
piotr.sobczyk Jan 29, 2010 11:40 PM (in response to piotr.sobczyk)Thanks, Marek. You were right.
In order to turn off debug mode in JBoss Tools project you have to:
1. set debug=false
in components.xml
2. go to build path settings from project and change output folder for /src/hot to {project.name}/build/classesIn order to turn it on you have to do the opposite (debug=
true
,set /src/hot output folder {project.name}/WebContents/WEB-INF/dev).