Ticket #903 (new defect)

Opened 2 years ago

Last modified 23 months ago

build.xml issue while collection build is running

Reported by: gunasekarank15 Owned by: nobody
Priority: very high Milestone: 3.09 Release
Component: Collection Building Severity: major
Keywords: build.xml issue in greenstone3 Cc:

Description

Please help to resolve the below build issue in greenstone3. When i was doing the build process by giving command ant prepare, the following errors shows;

E:\GS3-SVN>ant prepare Buildfile: E:\GS3-SVN\build.xml

[echo] os.name: Windows 7

accept-properties:

[input] The following properties (among others) are being used from a build

properties file found in this directory:

[input] tomcat.server=localhost [input] tomcat.port=8383 [input] tomcat.installed.path= (this is the location of Tomcat's base

dir if it is already installed)

[input] proxy.host= [input] proxy.port= [input] disable.collection.building=false [input] If these are not acceptable, please change them and rerun thi

target. Continue [y/n]?

[input] (y, n)

y

init:

[echo] tomcat.port = 8383

copy-dot-in-files:

[copy] Copying 1 file to E:\GS3-SVN\resources\tomcat [copy] Copying 1 file to E:\GS3-SVN\resources\tomcat [copy] Copying 1 file to E:\GS3-SVN\resources\tomcat [copy] Copying 1 file to E:\GS3-SVN\resources\tomcat [copy] Copying 1 file to E:\GS3-SVN\resources\oai [copy] Copying 1 file to E:\GS3-SVN\resources\cgi [copy] Copying 1 file to E:\GS3-SVN\resources\web [copy] Copying 1 file to E:\GS3-SVN\resources\web

prepare-core:

prepare-packages: prepare-common-src:

prepare-gs2build:

[echo] os.name: Windows 7

init:

[echo] tomcat.port = 8383

checkout-gs2build:

[echo] checking out gs2build

BUILD FAILED E:\GS3-SVN\build.xml:2740: The following error occurred while executing this lin e: E:\GS3-SVN\build.xml:2752: Execute failed: java.io.IOException: Cannot run progr am "svn": CreateProcess? error=2, ?w?????t?@?

at java.lang.ProcessBuilder?.start(ProcessBuilder?.java:460) at java.lang.Runtime.exec(Runtime.java:593) at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Jav

a13CommandLauncher.java:58)

at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442) at org.apache.tools.ant.taskdefs.ExecTask?.runExecute(ExecTask?.java:629) at org.apache.tools.ant.taskdefs.ExecTask?.runExec(ExecTask?.java:670) at org.apache.tools.ant.taskdefs.ExecTask?.execute(ExecTask?.java:496) at org.apache.tools.ant.UnknownElement?.execute(UnknownElement?.java:293) at sun.reflect.GeneratedMethodAccessor?4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl?.invoke(DelegatingMethodAcces?

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils?.execute(DispatchUtils?.jav

a:106)

at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) at org.apache.tools.ant.helper.SingleCheckExecutor?.executeTargets(Single

CheckExecutor?.java:38)

at org.apache.tools.ant.Project.executeTargets(Project.java:1260) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441) at org.apache.tools.ant.taskdefs.CallTarget?.execute(CallTarget?.java:105)

at org.apache.tools.ant.UnknownElement?.execute(UnknownElement?.java:293) at sun.reflect.GeneratedMethodAccessor?4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl?.invoke(DelegatingMethodAcces?

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils?.execute(DispatchUtils?.jav

a:106)

at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) at org.apache.tools.ant.Project.executeTarget(Project.java:1376) at org.apache.tools.ant.helper.DefaultExecutor?.executeTargets(DefaultExe?

cutor.java:41)

at org.apache.tools.ant.Project.executeTargets(Project.java:1260) at org.apache.tools.ant.Main.runBuild(Main.java:853) at org.apache.tools.ant.Main.startAnt(Main.java:235) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)

Caused by: java.io.IOException: CreateProcess? error=2, ?w?????t?@?

at java.lang.ProcessImpl?.create(Native Method) at java.lang.ProcessImpl?.<init>(ProcessImpl?.java:81) at java.lang.ProcessImpl?.start(ProcessImpl?.java:30) at java.lang.ProcessBuilder?.start(ProcessBuilder?.java:453) ... 36 more

Total time: 2 seconds

E:\GS3-SVN>

Attachments

build.xml Download (144.6 KB) - added by gunasekarank15 2 years ago.
build.xml

Change History

Changed 2 years ago by gunasekarank15

build.xml

Changed 2 years ago by ak19

It looks like your problem is that you don't have SVN installed. Make sure SVN and any other programs and packages needed to compile up Greenstone 3 are installed on your machine.

If you're on linux have a look at  http://wiki.greenstone.org/doku.php?id=en:developer:compiling_greenstone

If you're on windows, see  http://wiki.greenstone.org/doku.php?id=en:developer:windows_source_install&s[]=local

Since Greenstone trac is not set up as a bug reporting system, we won't notice anything you enter here. In future, send a message to the mailing list if you want to report a bug. We're likely to see it there and respond to it.

Changed 23 months ago by kjdon

Lets have a wiki/blog entry about compiling. checklist: you need svn (command line), visual studio etc

or we tell people to svn checkout local as well as greenstone?? add svn examples into the local setup script?

Note: See TracTickets for help on using tickets.