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

PCTCompileExt will not compile program names that do not have a file extension #87

Closed
GoogleCodeExporter opened this issue Mar 28, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Include 1 or more files that do not have a file extension in a fileset 
within a PCTCompileExt task
2. Attempt to compile

What is the expected output? What do you see instead?
A compiled program

What version of the product are you using? On what operating system?
Jenkins build #190, Oracle Solaris 10 sparc 

Please provide any additional information below.
This works fine with PCTCompile but I would like to take advantage of 
multi-threaded compiles.

    <PCTCompileExt numThreads="${env.COMPILETHREADS}" destDir="${BuildDir}/progress/compiled/rp" dlcHome="${env.DLC}" cpStream="iso8859-1" forceCompile="${env.FORCERECOMPILE}">
        <PCTConnection dbName="trading1" LogicalName="trading" dbDir="/dsi/${env.VERSION}/p.schema/db1" readOnly="true">
            <PCTAlias name="tdb" noError="true"/>
        </PCTConnection>

        <!-- Progress database connection -->
        <PCTConnection dbName="trading_asp" HostName="${env.BILLDBHOST}" dbPort="${env.BILLDBPORT}"/>

        <!-- parameters passed to the Progress client session used to compile -->
        <Option name="-s" value="3000"/>
        <Option name="-inp" value="30000"/>
        <Option name="-tok" value="4000"/>
        <Option name="-mmax" value="65534"/>

        <!-- files to exclude from the compile -->
        <fileset dir="${CheckoutDir}/p.util" includes="ipPositionQry">
        </fileset>

        <!-- Progress propath -->
        <propath>
            <pathelement location="${CheckoutDir}/p.dev"/>
        </propath>
    </PCTCompileExt>


Thanks much!

Original issue reported on code.google.com by shea.tro...@gmail.com on 29 Jan 2015 at 9:54

@GoogleCodeExporter
Copy link
Author

Forgot to include the error:

[Step 1/2] compile
[15:47:56][compile] echo
[15:47:57][compile] PCTCompileExt
[15:47:57][PCTCompileExt] PCTCompile - Progress Code Compiler
[15:47:57][PCTCompileExt] java.lang.StringIndexOutOfBoundsException: String 
index out of range: -1
[15:47:57][Step 1/2] Process exited with code 1
[15:47:57][Step 1/2] Ant output
[15:47:57][Ant output] 
[15:47:57][Ant output] compile:
[15:47:57][Ant output]      [echo] Compiling 
/dsi/build/TeamCity/buildAgent/work/f8e9b7dae856aee9/p.dev
[15:47:57][Ant output] [PCTCompileExt] PCTCompile - Progress Code Compiler
[15:47:57][Ant output] 
[15:47:57][Ant output] BUILD FAILED
[15:47:57][Ant output] /dsi/build/scripts/test/devbuild.xml:300: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
[15:47:57][Ant output]  at java.lang.String.substring(String.java:1911)
[15:47:57][Ant output]  at 
com.phenix.pct.PCTBgCompile$RCodeMapper.mapFileName(PCTBgCompile.java:678)
[15:47:57][Ant output]  at 
com.phenix.pct.PCTBgCompile.initializeCompilationUnits(PCTBgCompile.java:436)
[15:47:57][Ant output]  at 
com.phenix.pct.PCTBgCompile.execute(PCTBgCompile.java:392)
[15:47:57][Ant output]  at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[15:47:57][Ant output]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
[15:47:57][Ant output]  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[15:47:57][Ant output]  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)
[15:47:57][Ant output]  at java.lang.reflect.Method.invoke(Method.java:606)
[15:47:57][Ant output]  at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[15:47:57][Ant output]  at org.apache.tools.ant.Task.perform(Task.java:348)
[15:47:57][Ant output]  at org.apache.tools.ant.Target.execute(Target.java:435)
[15:47:57][Ant output]  at 
org.apache.tools.ant.Target.performTasks(Target.java:456)
[15:47:57][Ant output]  at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
[15:47:57][Ant output]  at 
org.apache.tools.ant.Project.executeTarget(Project.java:1364)
[15:47:57][Ant output]  at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:
41)
[15:47:57][Ant output]  at 
org.apache.tools.ant.Project.executeTargets(Project.java:1248)
[15:47:57][Ant output]  at org.apache.tools.ant.Main.runBuild(Main.java:851)
[15:47:57][Ant output]  at org.apache.tools.ant.Main.startAnt(Main.java:235)
[15:47:57][Ant output]  at 
org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[15:47:57][Ant output]  at 
org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
[15:47:57][Ant output] 
[15:47:57][Ant output] Total time: 1 second
[15:47:57][Step 1/2] Step build (Ant) failed

Original comment by shea.tro...@gmail.com on 29 Jan 2015 at 9:57

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Reproduced problem

Original comment by g.quer...@gmail.com on 1 Feb 2015 at 9:23

  • Changed state: Accepted
  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Fixed in Dev

Original comment by g.quer...@gmail.com on 1 Feb 2015 at 10:47

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

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

No branches or pull requests

1 participant