Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org.dslforge.workspace.config.configuration #45

Open
mspiffy opened this issue Feb 7, 2017 · 3 comments
Open

org.dslforge.workspace.config.configuration #45

mspiffy opened this issue Feb 7, 2017 · 3 comments

Comments

@mspiffy
Copy link

mspiffy commented Feb 7, 2017

I modified/then deleted my org.dslforge.workspace.config.configuration extension point (and path contribution). Recreating an org.dslforge.workspace.config.configuration - where can I find the schema for the extension point; without a schema I get a java.sql.SQLException in terms of the workspace going to the default value. Which schema file could one apply to this config extension point?

@jabiercoding
Copy link
Contributor

The schema is here: https://github.com/plugbee/dslforge/blob/master/plugins/org.dslforge.workspace.config/schema/configuration.exsd
but I think that you just want to add the extension point again, right?
In the web plugin you can add

<extension
        point="org.dslforge.workspace.config.configuration">
     <contribution
           path="C:\www\somefolder">
     </contribution>
  </extension>

for the path, there are these examples in the extension point description
D:/www/dslforge/workspace or /var/lib/tomcat7/workspace

@kgardas
Copy link

kgardas commented Mar 24, 2017

Slightly related, is it possible to modify path programatically? Or is it possible to use @user.home to point to the user directory?

@jabiercoding
Copy link
Contributor

jabiercoding commented Mar 25, 2017

I agree. If we are sharing the project in a team during development or if we have it in several computers we should not rely on hardcoded absolute paths. Right now, if we don't define this extension point it will take D:/www/dslforge/workbench as default so we need to have Windows and a D disk. See

public static final String WORKSPACE_DEFAULT_PATH = "D:/www/dslforge/workbench";

As @kgardas suggests, at least we can replace this line with
public static final String WORKSPACE_DEFAULT_PATH = System.getProperty("user.home") + File.separator + "www" + File.separator + "dslforge" + File.separator + "workbench";
@kgardas, is this solution valid for your case? If yes, please, open a new issue to manage it correction properly or to continue this discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants