Eclipse allows different JDKs per project, not sure about Idea Thanks Amir
> -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] > Sent: Monday, August 06, 2007 1:24 PM > To: [email protected] > Subject: Re: [magnolia-dev] [magnolia-svn] [10376] a useful > getBooleanProperty() method > > :( > one of the reason why I will be happy for a future migration to java > 5: having a consistent development environment in my IDE > again, it's really bad not being able to catch those kind of > stupid problems without running a full build outside eclipse. > > (btw, does Idea allow a different java version per source path?) > > fabrizio > > > On 8/6/07, Grégory Joseph <[email protected]> wrote: > > ... does not work with java 1.4, Boolean.parseBoolean() is > @since 1.5 > > > > On Aug 6, 2007, at 19:03 , [EMAIL PROTECTED] wrote: > > > > > Revision10376AuthorfgiustDate2007-08-06 19:03:15 +0200 > (Mon, 06 Aug > > > 2007)Log Messagea useful getBooleanProperty() > methodModified Paths > > > magnolia/trunk/magnolia-core/src/main/java/info/magnolia/cms/core/ > > > SystemProperty.java > > > Diff > > > Modified: > magnolia/trunk/magnolia-core/src/main/java/info/magnolia/ > > > cms/core/SystemProperty.java (10375 => 10376)--- magnolia/trunk/ > > > magnolia-core/src/main/java/info/magnolia/cms/core/ > > > SystemProperty.java 2007-08-06 16:37:24 UTC (rev 10375) +++ > > > magnolia/trunk/magnolia-core/src/main/java/info/magnolia/cms/core/ > > > SystemProperty.java 2007-08-06 17:03:15 UTC (rev 10376)@@ -39,7 > > > +39,7 @@ public static final String MAGNOLIA_WEBAPP = > > > "magnolia.webapp"; public static final String > > > MAGNOLIA_SERVERNAME = "magnolia.servername";- + /** * > > > If this repository/workspace is empty bootstrap this repository. > > > This will be the config repository in the most * cases.@@ > > > -50,7 +50,7 @@ * Force bootstrapping of the listed > > > workspaces */ public static final String > BOOTSTRAP_FORCE = > > > "magnolia.bootstrap.force";- + private static Properties > > > properties = new Properties(); /**@@ -81,6 +81,15 > > > @@ } /**+ * Returns a boolean property, returning > > > <code>false</code> if the property is not set. + * @param name > > > property name + * @return true only if the request > property has > > > a value of <code>true</code> + */ + public static boolean > > > getBooleanProperty(String name) { + return > > > Boolean.parseBoolean(getProperty(name)); + } + + /** * > > > @param name * @param defaultValue */@@ -102,5 +111,5 > > > @@ public static Properties getProperties() { return > > > SystemProperty.properties; }- + } > > > > > > > > > ---------------------------------------------------------------- > > for list details see > > http://documentation.magnolia.info/docs/en/editor/stayupdated.html > > ---------------------------------------------------------------- > > > > ---------------------------------------------------------------- > for list details see > http://documentation.magnolia.info/docs/en/editor/stayupdated.html > ---------------------------------------------------------------- > ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/docs/en/editor/stayupdated.html ----------------------------------------------------------------
