Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
811c07a
commit e8fe898
Showing
8 changed files
with
136 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...importer-web/docroot/WEB-INF/src/com/liferay/resourcesimporter/util/PortletPropsKeys.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,25 @@ | |||
/** | |||
* Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. | |||
* | |||
* This library is free software; you can redistribute it and/or modify it under | |||
* the terms of the GNU Lesser General Public License as published by the Free | |||
* Software Foundation; either version 2.1 of the License, or (at your option) | |||
* any later version. | |||
* | |||
* This library is distributed in the hope that it will be useful, but WITHOUT | |||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | |||
* details. | |||
*/ | |||
|
|||
package com.liferay.resourcesimporter.util; | |||
|
|||
/** | |||
* @author Shinn Lok | |||
*/ | |||
public interface PortletPropsKeys { | |||
|
|||
public static final String DEVELOPER_MODE_ENABLED = | |||
"developer.mode.enabled"; | |||
|
|||
} |
28 changes: 28 additions & 0 deletions
28
...porter-web/docroot/WEB-INF/src/com/liferay/resourcesimporter/util/PortletPropsValues.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,28 @@ | |||
/** | |||
* Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. | |||
* | |||
* This library is free software; you can redistribute it and/or modify it under | |||
* the terms of the GNU Lesser General Public License as published by the Free | |||
* Software Foundation; either version 2.1 of the License, or (at your option) | |||
* any later version. | |||
* | |||
* This library is distributed in the hope that it will be useful, but WITHOUT | |||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | |||
* details. | |||
*/ | |||
|
|||
package com.liferay.resourcesimporter.util; | |||
|
|||
import com.liferay.portal.kernel.util.GetterUtil; | |||
import com.liferay.util.portlet.PortletProps; | |||
|
|||
/** | |||
* @author Shinn Lok | |||
*/ | |||
public class PortletPropsValues { | |||
|
|||
public static final boolean DEVELOPER_MODE_ENABLED = GetterUtil.getBoolean( | |||
PortletProps.get(PortletPropsKeys.DEVELOPER_MODE_ENABLED)); | |||
|
|||
} |
3 changes: 3 additions & 0 deletions
3
webs/resources-importer-web/docroot/WEB-INF/src/portlet.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
include-and-override=portlet-ext.properties | |||
|
|||
developer.mode.enabled=false |