- This topic has 4 replies, 3 voices, and was last updated 17 years ago by Loyal Water.
-
AuthorPosts
-
Robert ByrneMemberCurrently I am using an ANT build to deploy and would love to use the ME deploy so I could get hot swap working and not have to rebuild every time. The problem I am having at this moment is there are property strings in some of the code that needs to be replace with those property values.
I am hoping this is a common enough practice that ME has the capability to do a string replace during deployment. Any way I could accomplish this?
Thanks,
-Robert
Loyal WaterMemberThere is no way to substitute a string during deployment. Im not sure if you would have to do any string substitutions if you use MyEclipse to deploy your applications. What values do you want to substitute ?
This should give you an idea on how the MyEclipse deployment works:-
http://www.myeclipseide.com/documentation/quickstarts/appservers/
ernestzMemberI have also tried to find a way to do string substitutions during deployment, and had to resort to Ant scripts to build my war files and had to manually deploy.
I have three types of deployments I typically perform: development, test, and production. Each deployment typically has a different configuration. For example, I have a Ant copy tasks that will substitute database server names for the different environments, sets different log levels in my log4j configurations, as well as using a timestamp to embed in some key files so we know when the application was last deployed.
It would be nice to have some support to add something like deployment profiles, where one could specify property/value substitutions.
Robert ByrneMemberLike Ernest says, different platforms have different resources available to it. These properties are replaced at build time, and the code is rebuilt for each platform and it’s own configuration. It would be too risky for me to replace these properties because I would always be running a diff will what is in the repository. God forbid I miss something! So, right now my only option is ANT build / deploy. It’s just too expensive to figure out how to decouple these properties from the application at this point.
And in case you are wondering which files need a substitution, it’s all types. There are probably a couple java, couple jsp and web.xml.
Like I said, I hope this is common enough that someone at ME might think it prudent to add a properties file to a deployment profile the way the ant builder does.
Thanks,
-Robert
Loyal WaterMemberThis message has not been recovered.
-
AuthorPosts