[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-6093) Eclipse Guvnor Tooling causes validation errors on certain file types

Jeff DeLong (JIRA) jira-events at lists.jboss.org
Wed Mar 24 10:19:37 EDT 2010


    [ https://jira.jboss.org/jira/browse/JBIDE-6093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12521728#action_12521728 ] 

Jeff DeLong commented on JBIDE-6093:
------------------------------------

When you add a file from your local Eclipse environment into Guvnor, a file is created with the same name except for a dot in front. These files contain the Guvnor integration information. For example here is a .jboss-esb.xml file


#Wed Mar 10 22:29:27 MST 2010
filename=jboss-esb.xml
revision=2
lastmodified=2010-03-10T22\:29\:27
repository=http\://localhost\:8080/drools-guvnor/org.drools.guvnor.Guvnor/webdav
fullpath=http\://localhost\:8080/drools-guvnor/org.drools.guvnor.Guvnor/webdav/packages/PolicyQuoteEntityService/jboss-esb.xml


This is ok when adding rule files, i.e. .drl files into Guvnor; the Drools validator does not complain.

But a file with an xml extension (as well as the others I listed previously) will cause the xml validator to complain.

It is not as simple as ignoring .sv files (which a user could add themselves), as the names of the files are dependent on the name of the source file. E.g., If I add Policy.java to Guvnor, then it creates a .Policy.java file.

Now before you ask "why are you adding all these different file types to Guvnor", see http://community.jboss.org/thread/149327.


>  Eclipse Guvnor Tooling causes validation errors on	certain file types
> ----------------------------------------------------------------------
>
>                 Key: JBIDE-6093
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-6093
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: drools
>    Affects Versions: 3.1.0.CR2
>         Environment: JBoss Tools Nightly Build - Jboss Drools Guvnor 5.1.0.v20100226213N-H20-31764
>            Reporter: Jeff DeLong
>
> Eclipse Guvnor Tooling creates a new file with the name  .filename.ext when a file is added to Guvnor. For xml files (.xml, .xsd, .html, .bpel, etc,) and java files, this causes the validators to report errors. E.g., "Content is not allowed in the prolog" and "Syntax errors on tokens, delete these tokens. This is because these files have the xml or java extension, hence the validator attempts to validate them. I have looking at the Preferences -> Validation, but cannot see a clever way to create a rule to exclude all files with a . at the front of the filename.
> Also, Eclipse Guvnor Tooling is not able to add files to the new for Guvnor 5.1 GlobalArea.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list