You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Martin Goldhahn (JIRA)" <ji...@apache.org> on 2012/12/15 23:22:12 UTC
[jira] [Commented] (CMIS-610) Make location of configuration files
configurable
[ https://issues.apache.org/jira/browse/CMIS-610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13533178#comment-13533178 ]
Martin Goldhahn commented on CMIS-610:
--------------------------------------
The Properties.list function hs to be substituted with the Properties.store method.
ClientHelper.readFileAndRemoveHeader looks like this:
public static String readFileAndRemoveHeader(URI file) {
if (file == null) {
return "";
}
InputStream stream;
try {
Properties p = new Properties();
stream = file.toURL().openStream();
if (stream == null) {
return "";
}
p.load(stream);
stream.close();
StringWriter sw = new StringWriter();
p.store(sw, null);
return sw.toString();
} catch (Exception e) {
return "";
}
}
> Make location of configuration files configurable
> -------------------------------------------------
>
> Key: CMIS-610
> URL: https://issues.apache.org/jira/browse/CMIS-610
> Project: Chemistry
> Issue Type: Improvement
> Components: opencmis-workbench
> Reporter: Martin Goldhahn
> Attachments: chemistry-opencmis-workbench.patch
>
>
> The location of the configuration files for the CMIS repositories and the groovy script files is included in the workbench JAR and hard-coded.
> I need to add my own repository nad would like to put its config parameters in a property file like the ones shipped with the workbench.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira