cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Pilgrim

IA reports erro when building from command line, but builds fine with GUI

Hi,

The error I get varies with configuration:
E,g when I try building "windows_only" target
command line
%IA%\build.exe my.iap_xml windows_only
I have:

The -i build option MUST be followed by a valid System i Login credentials info


(and lots of other messages that really hide the problem)
with another configuration
command line
%IA%\build.exe my.iap_xml

I have among other messages:

The -d build option MUST be followed by a valid directory


Those configurations build fine from UI.

Where I can look what configuration looks like. Output is very huge but lists only general help information and command line prameters.
I am attaching one of them below.
Thanks!
Labels (1)
0 Kudos
3 Replies
Highlighted
Pilgrim

Re: IA reports erro when building from command line, but builds fine with GUI

ikhasin wrote:
Hi,

The error I get varies with configuration:
E,g when I try building "windows_only" target
command line
%IA%\build.exe my.iap_xml windows_only
I have:

The -i build option MUST be followed by a valid System i Login credentials info


(and lots of other messages that really hide the problem)
with another configuration
command line
%IA%\build.exe my.iap_xml

I have among other messages:

The -d build option MUST be followed by a valid directory


Those configurations build fine from UI.

Where I can look what configuration looks like. Output is very huge but lists only general help information and command line prameters.
I am attaching one of them below.
Thanks!



I found that you use command line "C:\IAProjects\JVM_PATCH>%IA%\build.exe JVM_PATCH.iap_xml win".
From the user guide arguments "win" is not supported by "build.exe". Perhaps this is the cause.
It should be "build.exe JVM_PATCH.iap_xml +w" for building windows without VM.
0 Kudos
Highlighted
Pilgrim

Re: IA reports erro when building from command line, but builds fine with GUI

jchfeng wrote:
I found that you use command line "C:\IAProjects\JVM_PATCH>%IA%\build.exe JVM_PATCH.iap_xml win".
From the user guide arguments "win" is not supported by "build.exe". Perhaps this is the cause.
It should be "build.exe JVM_PATCH.iap_xml +w" for building windows without VM.


Hi -
thanks for responding.

"win" in my case is a configuration name (maybe not the best)

I have other configuration names like "nd32bit" for configuration with command line being
>%IA%\build.exe JVM_PATCH.iap_xml nd32bit
and it has same errors (pleas, see below).

Project builds fine 1) without configuration name;2) from UI "Build selected"

Thanks.


C:\test\ivmpatch.tool\lwp\jvmpatcher\JVM2012>%IA%\build.exe JVM2012.iap_xml
bit
Trying to checkout IAEB version=14.0
No Such Feature Exists (-5,3037)
Trying to checkout IACB version=14.0
No Such Feature Exists (-5,3037)
Trying to checkout IAEE version=14.0
Starting Update Service

...


============================================================

The -d build option MUST be followed by a valid directory

============================================================


============================================================

...

Started Update Service
Looking up Update Service
__________________________________________________________________________

InstallAnywhere 2012
Version: 14.0
Build: 4390
__________________________________________________________________________

Mon Sep 23 12:48:37 EDT 2013

Free Memory: 16197 kB
Total Memory: 23872 kB

3 Command Line Args:
0: -b
1: C:\test\ivmpatch.tool\lwp\jvmpatcher\JVM2012\JVM2012.iap_xml
2: nd32bit

java.class.path:
c:\Program Files\InstallAnywhere 2012\resource\bcapi\bcprov-jdk15on-147
...


============================================================

The -d build option MUST be followed by a valid directory

============================================================


============================================================
0 Kudos
Highlighted
Pilgrim

Re: IA reports erro when building from command line, but builds fine with GUI

ikhasin wrote:
Hi -
thanks for responding.

"win" in my case is a configuration name (maybe not the best)

I have other configuration names like "nd32bit" for configuration with command line being
>%IA%\build.exe JVM_PATCH.iap_xml nd32bit
and it has same errors (pleas, see below).

Project builds fine 1) without configuration name;2) from UI "Build selected"

Thanks.


C:\test\ivmpatch.tool\lwp\jvmpatcher\JVM2012>%IA%\build.exe JVM2012.iap_xml
bit
Trying to checkout IAEB version=14.0
No Such Feature Exists (-5,3037)
Trying to checkout IACB version=14.0
No Such Feature Exists (-5,3037)
Trying to checkout IAEE version=14.0
Starting Update Service

...


============================================================

The -d build option MUST be followed by a valid directory

============================================================


============================================================

...

Started Update Service
Looking up Update Service
__________________________________________________________________________

InstallAnywhere 2012
Version: 14.0
Build: 4390
__________________________________________________________________________

Mon Sep 23 12:48:37 EDT 2013

Free Memory: 16197 kB
Total Memory: 23872 kB

3 Command Line Args:
0: -b
1: C:\test\ivmpatch.tool\lwp\jvmpatcher\JVM2012\JVM2012.iap_xml
2: nd32bit

java.class.path:
c:\Program Files\InstallAnywhere 2012\resource\bcapi\bcprov-jdk15on-147
...


============================================================

The -d build option MUST be followed by a valid directory

============================================================


============================================================



Not sure.. But there is another option that, perhaps you can use a "buildproperties.properties" file, there is a sample under C:\Program Files (x86)\InstallAnywhere 2012\resource\build, in which

# Number of configurations to build
number.of.configs=2

# Build Configuration names
config.1.name=win
config.2.name=nd32bit
...

And then you can build your configuration by "build.exe JVM_PATCH.iap_xml -p buildproperties.properties".
0 Kudos