GithubHelp home page GithubHelp logo

riverside-software / pct Goto Github PK

View Code? Open in Web Editor NEW
96.0 96.0 62.0 131.42 MB

Build automation for OpenEdge ABL

License: Apache License 2.0

Java 27.31% OpenEdge ABL 64.56% JavaScript 0.61% HTML 0.15% CSS 0.40% TeX 0.11% Perl 0.01% Smalltalk 0.03% Makefile 0.26% E 0.01% Assembly 5.64% SWIG 0.33% Raku 0.01% XSLT 0.38% CWeb 0.01% Visual Basic 6.0 0.12% Apex 0.09%
ant build-automation openedge

pct's People

Contributors

ankkumar-progress avatar axelebnerpcsat avatar clement-brodu avatar cverbiest avatar droppedcalls avatar dustingrau-psc avatar gquerret avatar jakejustus avatar kenherring-rkt avatar lievencardoen avatar mikefechner avatar p-moberg avatar robinjpowell avatar rubinhos avatar spazzymoto avatar strachpr01 avatar vdende avatar wilddoug avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pct's Issues

PCTAlias node

Add a names attributes, to allow multiples alias in one PCTAlias node.
Should be mutually exclusive with name attribute.

Original issue reported on code.google.com by [email protected] on 6 Jan 2013 at 5:32

PCTCompile / PCTCompileExt - failOnError behavior

Hi,

I found that failOnError behavior does what it says in the documentation ("If 
task should end just after a failed file compilation"), but I would rather 
prefer to behave like it does say with javac task 
(http://ant.apache.org/manual/Tasks/javac.html - "Indicates whether compilation 
errors will fail the build; defaults to true").

In the PCTCompile case, setting failOnError to false does make it continue, but 
eventually the task will fail, where with Javac it will continue, but it won't 
fail the task - it will just print an error message saying "[javac] Compile 
failed; see the compiler error output for details.".

In my case, I'm writing a build task that eventually will send an email (using 
the mail Ant task) regardless of the compilation results, but as the build 
fails it won't continue and won't send the email.

I think I found the code in pctCompile() procedure in pctBgCompile.p that 
controls whether the task passes or fails - ASSIGN opOK = (compNotOk EQ 0) - 
but I cannot see how the failOnError can be accessed at that level.

Thanks,
Dan

Original issue reported on code.google.com by [email protected] on 30 Jul 2011 at 11:08

PCt-Compile ignores Folder for Interface

I have a cls File that Implements an Interface, now if i compile this class the 
interface will always be compiled to but the problem is that the interface is 
in another folder but will be put in the folder that i compile

For example my dir structure looks like this (the directories Main_1 and Main_2 
are in the Propath): 


-Main_1 
        - Interface1.cls 

-Main_2 
        - Class1.cls (Implements Interface1) 



If i compile Class1.cls then i get 
-Main2 
        -Class1.r 
        -Interface1.r 

But it should be:
-Main_1 
        - Interface1.r

-Main_2 
        - Class1.r


What version of the product are you using? On what operating system?
10.2.B.07


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 27 Sep 2013 at 8:25

PCTLibrary has problems with long filenames/paths

What steps will reproduce the problem?
1. Create a directory structure with multiple/long names, e.g.
TerminatorBusinessServices/bin/com/mycompanyname/blah/blah/blah/finallymyfilenam
e.r. (Typically over 128 characters long).
2. Try to use PCTLibrary function to create procedure library. 
3. PCT fails with "PCTLibrary returned: 2"


What version of the product are you using? On what operating system?

Running with Hudson Version #158, but experienced the same with earlier 
versions.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 3 Apr 2012 at 12:26

"** Index value is too long. (141)" in the .CRC file

What steps will reproduce the problem?
1. a bit hard to reproduce, we have a few procedures with lots of parameters. 
The xref in OE11 has a long "procedure" line for that procedure definition. 
This was truncated in the past (prior versions of OpenEdge). I located and 
fixed the issue, see the additional info section below.

What is the expected output? What do you see instead?
- I expect a proper crc file, listing the db table referenced along with their 
CRC number, instead I get a line with the "** Index value is too long. (141)" 
string

What version of the product are you using? On what operating system?
PCT-184, OE 11.3. This works fine with OE 10.1C, haven't tried any othet 
version.

Please provide any additional information below.

I located the issue in the code which reads the xref file in both 
pctBgCompile.p and pctCompile.p, namely the IMPORT STREAM sXREF ttXref. 
statement.

If the line has more than 2000 characters, OE does not move on the next line, 
but keeps reading this line. You read the file in 2 streams here and expect the 
reads to be in sync. The moment you hit a line > 2000 characters the 2 streams 
go out of sync, sXREF2 moves on, however sXREF reads the rest of the long line, 
from characters 2001 onwards. This makes the subsequent logic fail as the 2 
streams are expected to be in sync...

There are probably different ways to fix this, what I did was add the following 
        IF LENGTH (cTmp) > 2000 THEN
          IMPORT STREAM sXREF UNFORMATTED cTmp2.
immediately after 
        /* Sorry, this is crude... */
        IMPORT STREAM sXREF2 UNFORMATTED cTmp.

So my code now looks like this
    REPEAT:
        CREATE ttXref.
        IMPORT STREAM sXREF ttXref.

        /* Sorry, this is crude... */
        IMPORT STREAM sXREF2 UNFORMATTED cTmp.

        IF LENGTH (cTmp) > 2000 THEN
          IMPORT STREAM sXREF UNFORMATTED cTmp2.

        ASSIGN cTmp2 = ttXref.xLineNumber + ' ' + ttXref.xRefType + ' '.
        ...

This basically means once we hit a line > 2000 chars we read the rest of the 
line in cTmp2, just so the stream moves on the next line in the next iteration.

Cheers,
Simi

Original issue reported on code.google.com by [email protected] on 19 Jan 2014 at 11:28

ProgressVersion fullName appends 'as of' twice

Using PCT-178.jar.

The ProgressVersion task's fullVersion appens the 'as of' portion of the 
version file twice.

Steps to reproduce:
Add the following target to a build.xml file.
<target name="badVersion">
  <ProgressVersion dlcHome="${env.DLC}" majorVersion="dlcMajor" minorVersion="dlcMinor" fullVersion="dlcFull" />
  <echo message="${dlcMajor}"/>            
  <echo message="${dlcMinor}"/>
  <echo message="${dlcFull}"/>
</target>

The console output is as below.
badVersion:
[ProgressVersion] OpenEdge version found : OpenEdge Release 11.2 as of Wed Feb 
13 19:01:30 EST 2013
[ProgressVersion] Using object : com.phenix.pct.ProgressV11
     [echo] 11
     [echo] 2
     [echo] OpenEdge Release 11.2 as of Wed Feb 13 19:01:30 EST 2013 as of  Wed Feb 13 19:01:30 EST 2013


Note: I would also suggest adding an extra parameter for the service pack 
version (11 is major, 2 is minor and 0 is service pack). There might also be an 
argument for patches, although I don't recall the format.


Original issue reported on code.google.com by [email protected] on 1 Apr 2013 at 6:04

.pct directory should be added to defaultExcludes

What steps will reproduce the problem?
1. For example, use PCTLibrary with basedir attribute set to ${build}
2. .pct directory is automatically added if you don't add exclude rule


What is the expected output? What do you see instead?
.pct is temporary folder, and should be excluded by default from filesets (same 
as .svn for example).




Original issue reported on code.google.com by [email protected] on 6 Jan 2013 at 3:11

Using compositemapper does not allow correct working "recompile" check

What steps will reproduce the problem?
1. Create a build.xml which uses the compositemapper inside the PCTCompileExt 
task
2. execute the target
3.

What is the expected output? What do you see instead?
The expected outcome is that the process checks if anything related to the 
source is changed (CRC, includes etc.). 
If the compositemapper is used, it will always recompile the source, so 
checking fails.

What version of the product are you using? On what operating system?
PCT-179 on Win32 with Java 1.7.0. The issue also occurs on PCT-178.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 5 Jul 2013 at 2:35

Attachments:

Memory Violation when using PCT to compile under Linux

My compile tasks work nicely under Windows, but I get the following when I try 
to run it on a Linux 64-bit server.  I've attached the protrace file.

[PCTCompileExt] PCTCompile - Progress Code Compiler
[PCTCompileExt] Working with PCT source code, either because you asked for it 
or because the compiled version is missing in JAR file
[PCTCompileExt] SYSTEM ERROR: Memory violation. (49)
[PCTCompileExt] ** Save file named core for analysis by Progress Software 
Corporation. (439)
[PCTCompileExt] Exception in thread "Thread-26" java.lang.NullPointerException
[PCTCompileExt]         at 
com.phenix.pct.BackgroundWorker.listen(BackgroundWorker.java:85)
[PCTCompileExt]         at 
com.phenix.pct.PCTBgRun$ListenerThread$1.run(PCTBgRun.java:486)
[PCTCompileExt]         at java.lang.Thread.run(Thread.java:595)
[PCTCompileExt] Result: 2
[PCTCompileExt] 0 file(s) compiled



Original issue reported on code.google.com by [email protected] on 12 Jun 2012 at 3:40

Attachments:

pctBgCompile.p - Error with paths containing '#' character(s)

We have some source paths that contain # (hash) characters, and I believe 
that's causing a problem to pctCompile() procedure as it uses internally # as a 
separator (e.g. N:\Product\#Sxx\...)

[PCTCompileExt] Caused by: java.lang.NumberFormatException: For input string: ""
[PCTCompileExt] Entry 2 is outside the range of list N:\Product\. (560)
[PCTCompileExt]         at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
[PCTCompileExt]         at java.lang.Integer.parseInt(Integer.java:470)
[PCTCompileExt]         at java.lang.Integer.parseInt(Integer.java:499)
[PCTCompileExt]         at 
com.phenix.pct.PCTBgCompile$CompilationBackgroundWorker.handleResponse(PCTBgComp
ile.java:575)

&GLOBAL-DEFINE SEPARATOR '|'
&GLOBAL-DEFINE SEPARATOR2 '#'

ASSIGN cc = ENTRY(zz, ipPrm, {&SEPARATOR2}).

Can I suggest changing from # to another character that is not allowed in 
paths? e.g. ':' or '?' or '*'

Thanks,
Dan

Original issue reported on code.google.com by [email protected] on 21 Jan 2013 at 12:28

Memery leak/stackoverflow

What steps will reproduce the problem?
1. Running build often result Stack overflow(see file attached) or memory leak 
error.
2. After error occur compile proceeds up to the end.
3.

What is the expected output? What do you see instead?
No memory leak.

What version of the product are you using? On what operating system?
PCT-179, Ant 1.8.5, Eclipse 3.6.0, Windows 7 Professional, 

Please provide any additional information below.
Eclipse memory size increased to 1024M
eclipse.exe -vmargs -Xmx1024M 
Files to compile approx 2000.
Lots of includes.


Original issue reported on code.google.com by [email protected] on 29 Aug 2013 at 10:31

Attachments:

.NET interface not found without USING statement

CLASS Foo IMPLEMENTS x.y.Bar ABSTRACT:
...

(with x.y.bar being an interface in .NET assembly)

Doesn't compile using PCTCompile(Ext) but does in Developer Studio. Error in 
pct: 

[PCTCompileExt] Compilation Failure: 'Foo' implements interface 'x.y.Bar' but 
could not get or generate its type information. (13473)

When changing the code to:

USING x.y.* FROM ASSEMBLY.

CLASS Foo IMPLEMENTS bar ABSTRACT:
...

Pct is able to compile this. Am I missing something in my pct configuration to 
let the first case compile or is there a bug/limitation in pct?

Original issue reported on code.google.com by [email protected] on 23 Oct 2013 at 2:47

Problems with PCTCreateBase when definition file causes warnings

Hello.

I'm upgraded my old PCT jar (build 138) to the latest version (build 170), in 
order to get support to Progress version 11.1.

But now, even warnings in the database creation is failling my Ant target.
I see that I have an option: "commitWhenErrors" in PCTLoadSchema (not 
PCTCreateBase). So, I could use PCTCreateBase without definitions, and Load via 
PCTLoadSchema with commitWhenErrors=false, but I don't guess this is correct to 
use... I just got a warning on my DF load, and commitWhenErrors=false will pass 
even if the DF is with real problems...


The following errors and/or warnings occurred while loading 
\\TOUROS\Auto\_DFS\ems2\2.04\11.5.4-SNAPSHOT\PSC\ems2cex.df
into database ems2cex on 28/01/13 at 11:21.


** ADD FIELD comentarios caused a warning **

SQL client cannot access fields having widths greater than 31995.
The width of the field "comentarios" in the .df file is 48024.
Use the data dictionary Adjust Width Utility to correct width.

** ADD FIELD dsl-mercad caused a warning **

SQL client cannot access fields having widths greater than 31995.
The width of the field "dsl-mercad" in the .df file is 40020.
Use the data dictionary Adjust Width Utility to correct width.

Ant the Ant Log (it's actually in Portuguese, but guess you can get the point):

[PCTCreateBase] Sessรฃo Procopy iniciada por bruno.cunha em batch. (451)
[PCTCreateBase] 
[PCTCreateBase] Formatando extensรตes:
[PCTCreateBase]    tamanho                nome da รกrea   nome do caminho
[PCTCreateBase]       4    Primary Recovery Area 
E:\Auto\targets\Datasul11.5.4\ems204-datasul11.5.4\Progress\Dados\unica\db\ems2c
ex.b1 00:00:00
[PCTCreateBase]      16              Schema Area 
E:\Auto\targets\Datasul11.5.4\ems204-datasul11.5.4\Progress\Dados\unica\db\ems2c
ex.d1 00:00:00
[PCTCreateBase] 
[PCTCreateBase] Copiando c:\dlc111\empty8 para ems2cex... (6715)
[PCTCreateBase] 
[PCTCreateBase] Iniciando a escrita dos blocos de dados. (6718)
[PCTCreateBase] 11:21:29 10 Porcentagem completo.
[PCTCreateBase] 11:21:29 20 Porcentagem completo.
[PCTCreateBase] 11:21:29 30 Porcentagem completo.
[PCTCreateBase] 11:21:29 40 Porcentagem completo.
[PCTCreateBase] 11:21:29 50 Porcentagem completo.
[PCTCreateBase] 11:21:29 60 Porcentagem completo.
[PCTCreateBase] 11:21:29 70 Porcentagem completo.
[PCTCreateBase] 11:21:29 80 Porcentagem completo.
[PCTCreateBase] 11:21:29 90 Porcentagem completo.
[PCTCreateBase] 11:21:29 100 Porcentagem completo.
[PCTCreateBase] 370 blocos copiados. (6720)
[PCTCreateBase] 
[PCTCreateBase] ...Copia completa. (6722)
[PCTCreateBase] Banco copiado de c:\dlc111\empty8. (1365)
[PCTCreateBase] Fim de sessรฃo Procopy. (334)
[PCTCreateBase] Loading 
\\TOUROS\Auto\_DFS\ems2\2.04\11.5.4-SNAPSHOT\PSC\ems2cex.df into database
[PCTCreateBase] Errors during load. Log file can be found in 
C:\Jenkins\workspace\Upgrade - 11.5.4 - Progress (DLC 
11)\dados\Dados\dbtype\Progress\label\master\produtoversao\EMS2 
2.04\versao\11.5.4\Upgrade\ems2cex.e

BUILD FAILED




I appreciate your help.


Thank you.

Regards,
Bruno Candido Volpato da Cunha

Original issue reported on code.google.com by [email protected] on 28 Jan 2013 at 3:29

Compiling two files with the same name

What steps will reproduce the problem?
1. Create an empty file named "abc1.p"
2. Create a file with content (progress code) with the name "abc1.w"
3. Building with Ant pctcompile

What is the expected output? What do you see instead?
expected output:
an error saying it can not compile two files with the same name
see instead:
java runtime error

What version of the product are you using? On what operating system?
0.19pre

Original issue reported on code.google.com by [email protected] on 25 Jan 2012 at 6:36

Attachments:

PCTCompile - detailed connect error message

Hi,

First of all, great idea for a project and thanks for making it available.

Trying to setup an ANT script to sample the project, I found that PCTCompile 
wasn't unable to connect, but didn't report the actual PROGRESS error message. 
I've enhanced the code in ProgressV10.properties to report the error message 
(in my case an incompatibility of -Mm parameters, I might come back on that).

Ant log:

[PCTCompile] PCTCompile - Progress Code Compiler
[PCTCompile] Unable to connect to -db dbname -pf '[...]\connect.pf'
[PCTCompile] ERROR: Server has -Mm parm 32600 and client has 1024. They must
match. (1150)

ProgressV10.properties:

ProgressV10.1=CONNECT VALUE("{0}") NO-ERROR.\n\
IF ERROR-STATUS:ERROR THEN DO:\n\
  MESSAGE "Unable to connect to {0}".\n\
  MESSAGE "ERROR:" error-status:get-message(1).\n\
  RUN returnValue(14).\n\
  QUIT.\n\
END.\n

Obviously the code to report the error messages can be enhanced further to 
report multiple error messages if the case, e.g.

define variable i as integer no-undo.
do i = 1 to error-status:num-messages :
  message "ERROR:" error-status:get-message(i).
end.

If you could please include this enhancement in would be great.

Thanks,
Dan

Original issue reported on code.google.com by [email protected] on 5 Feb 2011 at 7:23

PCTCompileExt "forceCompile" not working

I noticed that PCTCompileExt wasn't always respecting the last-modified 
timestamps for ".cls" files. It seems to work just fine for PCTCompile.

I created an additional test-case for "PCTCompileExtTest" (see attached).

I'm using OpenEdge 10.2B0406 and PCT v0.17 (02/07/2011).

Original issue reported on code.google.com by ethan.sherrie on 2 Aug 2011 at 7:00

Attachments:

PCTCompile/PCTCompileExt experiences Stack Overflow

When trying to run PCTCompile against a directory tree with a fair number of 
programs (>500), I get the following: 

[PCTCompile] PCTCompile - Progress Code Compiler
[PCTCompile] SYSTEM ERROR: stkpush: stack overflow. Increase the -s parameter. 
(279)
[PCTCompile] SYSTEM ERROR: -s exceeded. Raising STOP condition and attempting 
to write stack trace to file 'procore'. Consider increasing -s startup 
parameter. (5635)

Is it possible to pass a parameter to the _progres.exe program to e.g. increase 
the -s parameter?  I tried

<option name="-s" value="400" />

on the PCTCompileExt target, but it didn't seem to make a difference.  Any 
thoughts?

Original issue reported on code.google.com by [email protected] on 11 May 2012 at 9:09

PCTCompile graphicalMode has no ability to toggle on "stream-io" option.

Our code base has many legacy .p's in amongst the .w's -- requiring a 
prowin32.exe compile of them using the "stream-io" option to avoid frame-width 
errors.  When using PCT, I cannot find an option that gives me a stream-io 
compiled rcode.

What steps will reproduce the problem?
1. Compile .p's using graphicalMode="yes"
2. Errors appear like:
    [PCTCompile] Error compiling file .\trend\sabsc.p in included file E:\bigguy3\sxdev_ant\code\trend\sabsc.p at line 0 column 0
    [PCTCompile] /* sabsc.p 1.1 01/02/98 */
    [PCTCompile] -^
    [PCTCompile] **FILL-IN User 3 will not fit in FRAME  in PROGRAM E:\bigguy3\sxdev_ant\code\trend\sabsc.p. (4028)

Compiling in graphicalMode="no" doesn't work in this example, since the 
resulting rcode will be in the wrong mode, producing the error: "Program 
sabsc.p was compiled under another incompatible display environment. Cannot run 
without recompile. (4338)"

What is the expected output? What do you see instead?
  Expected output is no compile error.

What version of the product are you using? On what operating system?
  pct build 150, ant 1.8.2, windows server 2003

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 27 Oct 2011 at 4:22

PCTDumpSchema would be nice to also dump the ST file

What steps will reproduce the problem?
1. Use PCTDumpSchema to dump a schema from a database connection.
2. Use PCTCreateBase to create a new database loading the schema from Step 1.
3. PCTCreateBase will fail during the load of the schema, since the database 
wasn't created using the same database structure file.

What is the expected output? What do you see instead?
Expected output of PCTDumpSchema should optionally include the database 
structure file.
I realize I can manually create an ST file for the database, but that means any 
future database changes will need to be made manually in the build.xml as well.

What version of the product are you using? On what operating system?
PCT build 150, ANT 1.8.2, Java 1.7.0_012
Windows Server 2003 32bit

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 24 Oct 2011 at 3:13

PCTLoadSchema reports success on failure

What steps will reproduce the problem?
1. Create a df file that adds a table to an area
2. Run a PCTLoadSchema task with a db that does not contain that area


What is the expected output?
Expected output : ERROR: errors occurred during load schema

What do you see instead?
[PCTLoadSchema] Loading /usr2/cce/appl/syncfood/incr.df into database

BUILD SUCCESSFUL
Total time: 0 seconds

A dbname.e file is present after this load. The existance of this file could be 
used to detect there was an error.

What version of the product are you using? On what operating system?
PCT built from latest source
OpenEdge 10.2B07
RedHat Enterprise 5.2


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 9 Jan 2013 at 1:52

Create DBConnectionSet

As DBConnection was added as a type, it would be useful to create a 
DBConnectionSet, to be used in <PCTRun> tasks, e.g.

<DBConnectionSet id="foobar">
  <DBConnection refid="cnx1" />
  <DBConnection refid="cnx2" />
  <DBConnection dbName="foo" />
</DBConnectionSet>

Original issue reported on code.google.com by [email protected] on 6 Jan 2013 at 3:17

PCTDumpSchema doesn't work properly in OE 10.2B

What steps will reproduce the problem?
1. Create schema dump with rename file

What is the expected output? What do you see instead?

Table and fields should be renamed and modified but are now sometimes dropped 
and not modified because they doesn't exist anymore...

PCT 0.16, OE 10.2B

This can be fixed by importing progress/pct/_dmpincr.p from OE 10.2B.

Original issue reported on code.google.com by [email protected] on 16 Nov 2010 at 2:18

java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IAdaptable with 11.3

I get the above error with a <ClassDocumentation> task in 11.3, using the 
following target.

{build.xml}
<target name="doc"  description="Builds XML &amp; HTML documentation from 
source files"
            depends="build">
        <mkdir dir="doc/xml" />
        <mkdir dir="doc/html" />

        <ClassDocumentation dlcHome="${env.DLC}"
              destDir="doc/xml">            
            <fileset
                dir="temp/preprocess" 
                includes="**/*.cls" />
        </ClassDocumentation>

        <HtmlDocumentation dlcHome="${env.DLC}"
          sourceDir="doc/xml"
          destDir="doc/html" />

        <!-- Remove the preprocessed directory -->
        <delete dir="temp/preprocess"/>
    </target>
{build.xml}

What version of the product are you using? On what operating system?
PCT-179.jar on Win7 64-bit. Running OE11.3.0 win64.

Please provide any additional information below.
{log}
BUILD FAILED
java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IAdaptable
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1387)
    at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1064)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
    at java.lang.Class.privateGetPublicMethods(Class.java:2547)
    at java.lang.Class.getMethods(Class.java:1410)
    at org.apache.tools.ant.IntrospectionHelper.<init>(IntrospectionHelper.java:180)
    at org.apache.tools.ant.IntrospectionHelper.getHelper(IntrospectionHelper.java:350)
    at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:378)
    at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:346)
    at org.apache.tools.ant.Task.maybeConfigure(Task.java:202)
    at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:196)
    at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:163)
    at org.apache.tools.ant.Task.perform(Task.java:347)
    at org.apache.tools.ant.Target.execute(Target.java:392)
    at org.apache.tools.ant.Target.performTasks(Target.java:413)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.Main.runBuild(Main.java:811)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.lang.ClassNotFoundException: org.eclipse.core.runtime.IAdaptable
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    ... 36 more
{log}

Original issue reported on code.google.com by [email protected] on 29 Jul 2013 at 4:00

Error using PCTDumpIncremental

I have the following in my ant file:

<PCTDumpIncremental destFile="${db.path}/delta.df">
  <SourceDb dbName="${db.path}/source" singleUser="true"/>
  <TargetDb dbName="${db.path}/${db.name}"/>
</PCTDumpIncremental>

But when I run the task, I get:

build.xml:261: DBConnection shouldn't be used in PCTDumpIncremental. Use 
sourceDatabase and targetDatabase instead


Original issue reported on code.google.com by [email protected] on 5 Sep 2012 at 1:35

PCTCreateBase should fail when .st file can't be found

What steps will reproduce the problem?
1. PCTCreateBase with structFile attribute
2. File can't be found
3. Database is still created, but with default structure

What is the expected output? What do you see instead?
PROSTRCT CREATE: cannot read file XXXX, command ignored

Task should fail. And by the way, it usually fails when loading schema.


Original issue reported on code.google.com by [email protected] on 6 Jan 2013 at 2:13

PCTCompile getting error messages in java

No good reproduce by.
The XML for the PCTCompile is:
  <PCTCompile graphicalMode="yes" tempDir="${tempdir}" dlcHome="${env.DLC}" destDir="${rcodedir}" listing="yes" runList="yes" keepXref="yes" maximumMemory="65534" stackSize="2048" token="8000" inputChars="32000" compileUnderscore="yes" languages="english,french" >


Error from the compile log:
[PCTCompile] PCTCompile - Progress Code Compiler
[PCTCompile] Result: -1073741819

BUILD FAILED

C:\bigguy3\sxdev_gui_ant\build.xml:99: Progress procedure failed - No output 
file
    at com.phenix.pct.PCTRun.execute(PCTRun.java:604)
    at com.phenix.pct.PCTCompile.execute(PCTCompile.java:465)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.Main.runBuild(Main.java:809)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.io.FileNotFoundException: 
C:\Users\deploy\AppData\Local\Temp\18\PCTResult18931.out (The system cannot 
find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at java.io.FileReader.<init>(FileReader.java:72)
    at com.phenix.pct.PCTRun.execute(PCTRun.java:588)
    ... 17 more


Windows error:
Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: prowin32.exe
  Application Version:  10.2.5.1519
  Application Timestamp:    4e66659f
  Fault Module Name:    prow32.dll
  Fault Module Version: 10.2.5.1519
  Fault Module Timestamp:   4e666598
  Exception Code:   c0000005
  Exception Offset: 00508b7a
  OS Version:   6.1.7600.2.0.0.18.10
  Locale ID:    1033
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789


What can I offer to help track this down?

Original issue reported on code.google.com by [email protected] on 28 Nov 2011 at 10:23

PCTCompileExt - CONNECT() error not reported

PCT Version 0.19-pre

PCTCompileExt doesn't seem to report database connect errors and continues to 
compile the programs regardless.

I tried changing the Connect procedure in _pserver.p to output the messages 
with logError without much success, I eventually had to use MESSAGE to see the 
cause of the problem. Aside from this I think the code in there should change 
to print the connect statement as well as all the error messages, e.g.

CONNECT VALUE(connectStr) no-error.
IF ERROR-STATUS:NUM-MESSAGES > 0 THEN DO:
  ASSIGN opOk = FALSE.
  RUN logError(substitute("CONNECT(&1"), connectStr)).
  REPEAT zz = 1 TO ERROR-STATUS:NUM-MESSAGES :
    RUN logError (ERROR-STATUS:GET-MESSAGE(zz)).
  end.
END.

Maybe executeCmd() should also check the lOK parameter returned from RUN 
VALUE(cCmd) and stop processing the rest of the commands if one of them 
failed...

To replicate it you can have a connect statement that's incorrect with a 
PCTCompileExt call, and it will result in a lot of compile errors for 
statements that use database fields.

Original issue reported on code.google.com by [email protected] on 26 Nov 2011 at 4:32

PCTCompile / PCTCompileEx - display program name to be compiled

Hi,

I'd like to propose an enhancement to PCTCompile / PCTCompilExt to print out 
the program name to be compiled, just like the PROGRESS Compiler does.

Maybe this could be controller by a new attribute verbose="true" or displayed 
all the time, I don't care really as long as it gets displayed.

Thanks,
Dan

pctBgCompile.p
line 275:
RUN logInfo IN ipSrcProc (SUBSTITUTE("Compiling &1", inputFile)).


Buildfile: C:\Temp\pct-test\build.xml

test:
[PCTCompileExt] PCTCompile - Progress Code Compiler
[PCTCompileExt] Compiling c:\temp\pct-test\test.p
[PCTCompileExt] Compiling c:\temp\pct-test\test2.p
[PCTCompileExt] 2 file(s) compiled

BUILD SUCCESSFUL
Total time: 2 seconds

Original issue reported on code.google.com by [email protected] on 30 Jul 2011 at 8:49

Enhancement request : tables parameter as can-do list instead comma separated list

Currently you can't exclude tables, the can-do syntax would allow this. e.g. tables="!audit_*,*" would dump/load everything except tables that match the audit_* pattern. This applies to all commands that have a tables parameter

This would not invalidate current configuration as a comma-separated list is also a can-do list. Internally the code would transform the can-do list into the required table list.

Other parameters such as arealist would also be useful in this context. By specifying an arealist a dump/load could be limitted to a certain db area.

An alternative would be to add the include/exclude parameters of binary dump to the other dump & load commands

Original issue reported on code.google.com by `[email protected]` on 20 Nov 2012 at 1:10

PCTCompileExt doesn't support the nested "DBConnectionSet"

I'm trying out the DBConnectionSet type but it's not working inside a 
PCTCompileExt task (no problems when using a PCTCompile) task.

<DBConnectionSet id="xyz">
</DBConnectionSet>

<PCTCompileExt ..>
   <DBConnectionSet refid="xyz" />
   ...
</PCTCompileExt>

results in "PCTCompileExt doesn't support the nested "DBConnectionSet" element."

Original issue reported on code.google.com by [email protected] on 2 Aug 2013 at 7:27

Error using PCT with classes

I used PCTCompile to compile some classes and interfaces I have in a project. 
It works fine (generating .r files) but i show some error messages in the 
process (see examples bellow).
Since I can't share the source code (copyright issues), I tried to isolate the 
error using samples classes but I couldn't simulate the same errors. So I 
attached the client log (level 4 for 4GLTRACE and 4GLMessages), hoping it will 
help to identify the cause.

Messages

[PCTCompile] PCTCompile - Progress Code Compiler
[PCTCompile] ** Invalid character in numeric input I. (76)
[PCTCompile] ** 
"C:\work\eai2\bin\.pct/com\totvs\datasul\eai\IApplication.cls.inc" was not 
found. (293)
[PCTCompile] ** "C:\work\eai2\bin\.pct/com\totvs\datasul\eai\IChannel.cls.inc" 
was not found. (293)
[PCTCompile] ** 
"C:\work\eai2\bin\.pct/com\totvs\datasul\eai\ICustomInfo.cls.inc" was not 
found. (293)
[PCTCompile] ** Invalid character in numeric input I. (76)
[PCTCompile] ** 
"C:\work\eai2\bin\.pct/com\totvs\datasul\eai\IXMLSerializable.cls.inc" was not 
found. (293)
[PCTCompile] ** Invalid character in numeric input I. (76)
[PCTCompile] ** Invalid character in numeric input I. (76)
[PCTCompile] ** 
"C:\work\eai2\bin\.pct/com\totvs\datasul\eai\TOTVSMessage.cls.inc" was not 
found. (293)
[PCTCompile] ** Invalid character in numeric input I. (76)
[PCTCompile] ** 
"C:\work\eai2\bin\.pct/com\totvs\datasul\eai\gui\MessageNavigator.cls.inc" was 
not found. (293)
[PCTCompile] ** Invalid character in numeric input I. (76)
[PCTCompile] ** Invalid character in numeric input I. (76)
[PCTCompile] ** Invalid character in numeric input I. (76)
[PCTCompile] 72 file(s) compiled

Original issue reported on code.google.com by [email protected] on 18 Mar 2011 at 8:18

Attachments:

Cannot specify no/unknown codepage for PCTLibrary create

It should be possible to not specify a codepage when creating a PL via 
PCTLibrary. Currently, PCTLibrary defaults to the value of the encoding 
attribute (which defaults to ISO8859-1).

There's no way to use the default value; specifying 'undefined' as encoding is 
not quite the same.

Original issue reported on code.google.com by [email protected] on 19 Nov 2013 at 5:10

Add v6frame compile option

What steps will reproduce the problem?
for some legacy apps I need to turn on the v6frame compile attribute, this is 
not currently supported

What is the expected output? What do you see instead?
would like to have the v6frame boolean parameter for the pctcompile task

What version of the product are you using? On what operating system?
pct-184, oe11

Please provide any additional information below.
Hi Gilles, me again. Looks like it's fairly easy to add this option to PCT, I'm 
attaching the code. As I said before, not much of a java dev so feel free to 
change ;) I've only added v6 to PCTCompile, not PCTCompileExt. Didn't figure 
out how to make the bootstrap compiler pick up the param, so wrote the java 
code a bit different than the rest, was getting an "unknown param v6frame=0" 
message when building pct.

Cheers,
Simi



Original issue reported on code.google.com by [email protected] on 30 Jan 2014 at 7:02

Attachments:

PCTDumpUsers bug in 11.3

Using 11.3.1 on Linux or Windows :
prodict/dump/_dmpuser.p Conflict in extent, datatype, or undo status for shared 
user_env. (391)

Original issue reported on code.google.com by [email protected] on 19 Oct 2013 at 8:16

Add assemblies to PCTCompileExt

What steps will reproduce the problem?
1. set up a PCTCompileExt task with the assemblies attribute. When running ant 
you should get the following error:

"PCTCompileExt doesn't support the "assemblies" attribute

What is the expected output? What do you see instead?
Expected ant to pass the assemblies attribute to the underlying OpenEdge 
process, just like PCTCompile does

What version of the product are you using? On what operating system?
Latest PCT-184. Win 7, OE 11.3

Please provide any additional information below.
I located the issue in the JAVA code. PCTCompileExt is based on PCTBgRun which 
doesn't support assemblies either. I've changed the code for 
GenericExecuteOptions & PCTBgRun similar to what PCTRun does for assemblies and 
got it to work.

I've attached the modified code so you can see the change if interested. Not 
much of a JAVA dev, so my implementation might not be ideal ;)


Original issue reported on code.google.com by [email protected] on 21 Jan 2014 at 5:49

Attachments:

PCTCompileExt - support for setting environment variables

PCTCompileExt doesn't seem to support setting environment variables, or am I 
doing something wrong? I need to specify the NLS_LANG environment variable for 
building for Oracle, otherwise PROGRESS will complains with:

[PCTCompileExt] Your NLS_LANG setting is not compatible with your 
Unicode-enabled schema holder code page.  You may expe
rience data loss if you do not select an NLS_LANG setting that is compatible 
with your schema holder. (14267)

I've been trying this, but with no luck:

<PCTCompileExt ...>
  <env key="NLS_LANG" value=".AL32UTF8" />
</PCTCompileExt>

Any advice is more than welcome.

Thanks,
Dan

Original issue reported on code.google.com by [email protected] on 7 Apr 2012 at 4:42

PCTCompile generates CLS rcode in the wrong folder

What steps will reproduce the problem?
1. Create a CLS file named similar to interface/common/test.cls
2. Compile via PCT
3. rcode appears in the folder interface/common/interface/common/test.r

What is the expected output? What do you see instead?
Expected it to create interface/common/test.r in the build folder.

What version of the product are you using? On what operating system?
Windows Server 2008R2, PCT build 154, ANT 1.8.2

Please provide any additional information below.
p code generates an rcode file created correctly in interface/common/


Original issue reported on code.google.com by [email protected] on 29 Nov 2011 at 8:59

<resources> in PCTCompile

Using this build.xml:

<project>
  <taskdef resource="PCT.properties" />

  <fileset id="src1" dir="src/dir1" includes="*.p" />
  <fileset id="src2" dir="src/dir2" includes="*.p" />
  <union id="src">
    <fileset refid="src1" />
    <fileset refid="src2" />
  </union>

  <mkdir dir="build" />
  <PCTCompile destDir="build">
    <resources refid="src" />
  </PCTCompile>
</project>


And two .p src/dir1/file1.p, src/dir2/file2.p

I get this result :
[PCTCompile] PCTCompile - Progress Code Compiler
[PCTCompile] File [/home/gquerret/dev/ant/src/dir1]/[file2.p] not found
[PCTCompile] 1 file(s) compiled
[PCTCompile] Failed to compile  1  file(s)


Original issue reported on code.google.com by [email protected] on 22 Aug 2013 at 10:23

Alias to PF defined database in PCTCompile

Hello.

I am currently using PCTCompile to compile a directory of sources, giving a PF 
in "paramFile" to connect the databases.

In PCTRun, I can create a program that creates the alias, and RUN my target 
procedure.

The problem is that in PCTCompile, and I can't define the initial procedure.
My PF is generated by parameter, so I can't hardcode the ALIAS in my Ant 
project.

My suggestion is to add a aliasFile parameter to the task, to RUN before trying 
to compile. 
Is it possible?


I tried to do that with database reference parameter (refid), but it doesn't 
refer to my PF db.


Thank you!

Regards,
Bruno


Original issue reported on code.google.com by [email protected] on 20 Aug 2013 at 11:41

PCTCompileExt doesn't set resultProperty

When running PCTCompileExt with failOnError="false" resultProperty="result", 
the result property is not set at the end of the PCTCompileExt task. With 
PCTCompile it works fine.

Original issue reported on code.google.com by [email protected] on 3 Oct 2013 at 10:21

Problem with subelements when using XML namespaces to reference PCT

To reproduce this problem create the following build file:

<?xml version="1.0" encoding="UTF-8"?>
<project name="test-build" default="compile" xmlns:pct="antlib:eu/rssw/pct">

    <property name="DLC" location="C:/Progress/OpenEdge" />

    <pct:db_connection_set id="compileconnection">
        <pct:db_connection dbname="test" dbdir="db/test" singleuser="true" />
    </pct:db_connection_set>

    <target name="compile" description="Compiles the source code">
        <pct:compile dlchome="${DLC}" destdir="${dir.compile}" graphicalmode="true">
            <fileset dir="${basedir}">
                <include name="**/*.p" />
            </fileset>

            <pct:db_connection_set refid="compileconnection" />
        </pct:compile>
    </target>
</project>

Then use ant to execute the compile target (I'm using Ant 1.8 with PCT-179).

An error message like the following will show up:

build.xml:6: pct:db_connection_set doesn't support the nested "db_connection" 
element.

If you change the name of the <pct:db_connection /> element in the connection 
set at the top of the build script to DbConnection, this error goes away. 
Instead ant complains about pct:compile not supporting the nested 
db_connection_set element (which seems to be the same problem.

I would expect to be able to refer to PCT types using the XML namespace 
notation even if they are nested inside other PCT tasks or types.

Original issue reported on code.google.com by [email protected] on 18 Jun 2013 at 12:19

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.