You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by mbeckerle <gi...@git.apache.org> on 2017/11/29 14:02:49 UTC

[GitHub] incubator-daffodil pull request #9: Fix eclipse classpaths and application t...

GitHub user mbeckerle opened a pull request:

    https://github.com/apache/incubator-daffodil/pull/9

    Fix eclipse classpaths and application that maintains them.

    Problem was being caused by duplicate entries in bundles and jars
    subdirs of lib_managed. 
    
    sbt populates same jars into both bundles and jars directories
    for a number of dependencies.
    
    Duplicates removed, and tool now checks and excludes duplicates.
    
    DFDL-1866

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mbeckerle/incubator-daffodil daffodil-1866-eclipse-classpath

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-daffodil/pull/9.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #9
    
----
commit 524f65079284a6747701a3d5b470f6c13e365b8e
Author: mbeckerle <mb...@tresys.com>
Date:   2017-11-29T13:41:19Z

    Fix eclipse classpaths and application that maintains them.
    
    Problem was being caused by duplicate entries in bundles and jars
    subdirs of lib_managed. 
    
    sbt populates same jars into both bundles and jars directories
    for a number of dependencies.
    
    Duplicates removed, and tool now checks and excludes duplicates.
    
    DFDL-1866

----


---

[GitHub] incubator-daffodil issue #9: Fix eclipse classpaths and application that mai...

Posted by stevedlawrence <gi...@git.apache.org>.
Github user stevedlawrence commented on the issue:

    https://github.com/apache/incubator-daffodil/pull/9
  
    +1


---

[GitHub] incubator-daffodil pull request #9: Fix eclipse classpaths and application t...

Posted by mbeckerle <gi...@git.apache.org>.
Github user mbeckerle commented on a diff in the pull request:

    https://github.com/apache/incubator-daffodil/pull/9#discussion_r153800350
  
    --- Diff: daffodil-lib/src/test/scala/UpdateEclipseClasspaths.scala ---
    @@ -93,7 +104,17 @@ trait UpdateEclipseClasspaths {
         val srcs = srcsDir.listFiles().flatMap { _.listFiles().flatMap { _.listFiles() } }
         val docs = docsDir.listFiles().flatMap { _.listFiles().flatMap { _.listFiles() } }
     
    -    val triples = (bundles ++ jars).map { jar =>
    +    //
    +    // Remove duplicates between the bundles directory and jars directory
    +    // (Not sure why sbt populates both, but many (all?) things found under
    +    // the bundles directory are also found under jars.
    +    //
    +    // Prefer the jars directory if things are found in two places.
    +    //
    --- End diff --
    
    I have since learned that sbt compile populates the bundles, and sbt updateClassifiers populates the duplicate jars. Not sure why,


---

[GitHub] incubator-daffodil pull request #9: Fix eclipse classpaths and application t...

Posted by mbeckerle <gi...@git.apache.org>.
Github user mbeckerle closed the pull request at:

    https://github.com/apache/incubator-daffodil/pull/9


---