[ 
http://jira.codehaus.org/browse/JIBX-246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cheng Lee updated JIBX-246:
---------------------------

    Attachment: JibxBindingBuilder.java

I've attached a patched version for your review which would let build commands 
support arguments. The relevant part is in method JibxBindingBuilder#build(int 
kind, Map args, IProgressMonitor monitor):

    jibxMappingsFolder = project.getPersistentProperty(new QualifiedName("",
        JibxPropertyPage.JIBX_SOURCE_FOLDER_PROPERTY));

... patch code begins

    // See if we have buildCommand argument named "jibxMappingsFolder". If so, 
use it
    if (args != null) {
      String mappingsFolder = (String) args.get("jibxMappingsFolder");
      if (mappingsFolder != null) {
        jibxMappingsFolder = mappingsFolder;
      }
    }

... patch code ends

    if (null == jibxMappingsFolder) {
      jibxMappingsFolder = JibxPropertyPage.DEFAULT_FOLDER;
    }

The priorities become:
1) build command arguments
2) eclipse workspace persistence store
3) JibxPropertyPage.DEFAULT_FOLDER

I think this is appropriate for my project since we build from maven and 
generate .project files with build command arguments. I hope this works for you 
guys

> Change location of JiBX configuration directory to .project file
> ----------------------------------------------------------------
>
>                 Key: JIBX-246
>                 URL: http://jira.codehaus.org/browse/JIBX-246
>             Project: JiBX
>          Issue Type: Improvement
>          Components: eclipse-plugin
>    Affects Versions: JiBX 1.1.6
>            Reporter: David Newcomb
>         Attachments: JibxBindingBuilder.java
>
>
> Our projects are held under source control (clearcase in our case).
> The current JiBX eclipse plugin's configuration information is split into 2 
> places. The mapping folder location is held as part of the workspace and the 
> project nature is held as part of the .project file.
> This means that we can not import the project into eclipse as a single step - 
> i.e. after importing the project we must explicitly set the mapping folder by 
> hand.
> Please can you store the JiBX configuration as part of the project's nature 
> (or somewhere in the .project/.classpath files).

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

        

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to