Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Johnathan Burbea
SystemOut O Starting Liferay Portal Community Edition 6.1.1 CE GA2?
November 13, 2012 6:19 PM
Answer

Johnathan Burbea

Rank: Junior Member

Posts: 39

Join Date: April 5, 2012

Recent Posts

where in the portal source do I find the class that spits out this message when the app starts?

[11/13/12 1:25:46:392 EST] 00000008 SystemOut O Starting Liferay Portal Community Edition 6.1.1 CE GA2 (Paton / Build 6101 / July 31, 2012)
[11/13/12 1:25:47:000 EST] 00000008 SystemOut O 01:25:47,000 INFO [server.startup : 0][BaseDB:452] Database supports case sensitive queries
[11/13/12 1:25:47:328 EST] 00000008 SystemOut O 01:25:47,328 INFO [server.startup : 0][ServerDetector:157] Server does not support hot deploy
[11/13/12 1:25:47:343 EST] 00000008 SystemOut O 01:25:47,343 INFO [server.startup : 0][PluginPackageUtil:1033] Reading plugin package for liferay-portal-6.1.0.war
David H Nebinger
RE: SystemOut O Starting Liferay Portal Community Edition 6.1.1 CE GA2?
November 13, 2012 7:08 PM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 9444

Join Date: September 1, 2006

Recent Posts

Well, it spits out the class name. Using this, find the matching source file by searching the portal-impl directory looking for matching names.
Johnathan Burbea
RE: SystemOut O Starting Liferay Portal Community Edition 6.1.1 CE GA2?
November 14, 2012 5:28 AM
Answer

Johnathan Burbea

Rank: Junior Member

Posts: 39

Join Date: April 5, 2012

Recent Posts

Hi David,

I have done some full text file searching on the portal source and tomcat ROOT and cannot determine where in the code this is indicated at app server startup:

[11/13/12 1:25:46:392 EST] 00000008 SystemOut O Starting Liferay Portal Community Edition 6.1.1 CE GA2 (Paton / Build 6101 / July 31, 2012)

How does the build capture this information?

How does one confirm they are looking at a 6.1.1 CE GA2 code base; when you want to build a dist:
ant -buildfile build-dist.xml zip-portal-war
ant -buildfile build-dist.xml zip-portal-dependencies

I end up with deployment units labeled:
liferay-portal-6.1.0.war
liferay-portal-dependencies-6.1.0.zip

They don't indicate 6.1.1. CE GA2:
liferay-portal-dependencies-6.1.1-ce-ga2.zip
liferay-portal-6.1.1-ce-ga2.war

Help?

Thanks,
JB
David H Nebinger
RE: SystemOut O Starting Liferay Portal Community Edition 6.1.1 CE GA2?
November 14, 2012 9:50 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 9444

Join Date: September 1, 2006

Recent Posts

That message comes from com.liferay.portal.events.StartupAction and defers to com.liferay.portal.kernel.util.ReleaseInfo class.

You'll see that ReleaseInfo is basically a static class that only has the current version info defined within it. As Liferay does a new release, the new code base will have an updated ReleaseInfo class that reports the correct current release version.
Johnathan Burbea
RE: SystemOut O Starting Liferay Portal Community Edition 6.1.1 CE GA2?
November 14, 2012 11:31 AM
Answer

Johnathan Burbea

Rank: Junior Member

Posts: 39

Join Date: April 5, 2012

Recent Posts

Hi David,

Thanks...indeed public class com.liferay.portal.kernel.util.ReleaseInfo {
...
private static final String _BUILD = "6101";
private static final String _CODE_NAME = "Paton";
private static final String _DATE = "July 31, 2012";
private static final String _NAME = "Liferay Portal Community Edition";
private static final String _VENDOR = "Liferay, Inc.";
private static final String _VERSION = "6.1.1";
private static final String _VERSION_DISPLAY_NAME = "6.1.1 CE GA2";
}

is where this is at.

How does the bundles, war and dependency dists don't get called 6.1.1.? How can I make sure the dists output the filename when running the ant command?

Thanks,
JB
David H Nebinger
RE: SystemOut O Starting Liferay Portal Community Edition 6.1.1 CE GA2?
November 14, 2012 1:29 PM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 9444

Join Date: September 1, 2006

Recent Posts

That's outside of the portal code and would be an artifact of the ant build scripts, something you'd need to dig in and change there.