Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2993

.ignore file prevents adding src/java/main/org/apache/jute/compiler/generated dir to git repo

    XMLWordPrintableJSON

Details

    Description

      There are Rcc.java and other required files under the src/java/main/org/apache/jute/compiler/generated directory.

      However, when I tried to add the source distribution to our own git repo, the .gitignore file has "generated" as a key word in line 55 - which prevents the dir and files under that dir to be added to the repo.  The compilation later fails due to the missing dir and files.

      compile_jute
      :19:02:54 [mkdir] Created dir: /home/jenkins/workspace/3PA/PMODS/zookeeper-pgdi-patch-in-maven-repo/src/java/generated*

      19:02:54* [mkdir] Created dir: /home/jenkins/workspace/3PA/PMODS/zookeeper-pgdi-patch-in-maven-repo/src/c/generated*

      19:02:54* [java] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8

      19:02:54 [java] Error: Could not find or load main class org.apache.jute.compiler.generated.Rcc*

      19:02:54* [java] Java Result: 1*19:02:54* [java] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8

      19:02:54 [java] Error: Could not find or load main class org.apache.jute.compiler.generated.Rcc*

      19:02:54* [java] Java Result: 1*19:02:54* [touch] Creating /home/jenkins/workspace/3PA/PMODS/zookeeper-pgdi-patch-in-maven-repo/src/java/generated/.generated*

       

      Fix is to remove or comment out the generated key word in line 55.

      #
      #generated
      #

       

      Attachments

        Issue Links

          Activity

            People

              taoist jason wang
              taoist jason wang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m