Based on a discussion in IRC last Thursday (18Sep2008) it was revealed
that there are Maven scripts for building the UDig SDK in the
"trunk/extras/headlessbuild" directory. There is a README file
providing some instructions. I have so far been unable to get the
scripts to work.
My work environment is:
Windows XP Pro 2002 with Service Pack 3
Maven version 2.0.9
Java version 1.6.0_06
SVN version 1.5.0 (r31699)
When I run the Maven script I have tried two ways with the same
results
1. mvn -Dtargets=sdk -Dconfigs=win32,win32,x86
2. mvn -Dtargets=sdk
Below is the output from running this command on a fresh checkout of
UDig from trunk. (Fresh = Thursday & not compiled at all in eclipse)
-----
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building Unnamed -
net.refractions.udig:headlessbuild:jar:0.1-SNAPSHOT
[INFO] task-segment: [compile]
[INFO]
------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [scala:compile {execution: default}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [scala:script {execution: default}]
[WARNING]
C:\UDigEclipse\sdk-build-workspace\trunk\extras\headlessbuild\target
\.sc
alaScriptGen\main_1.scala:11: error: not found: value project
[WARNING] val targetParam = if (project("targets")==null ||
project("targets").length==0) project("target")
[WARNING] ^
[WARNING]
C:\UDigEclipse\sdk-build-workspace\trunk\extras\headlessbuild\target
\.sc
alaScriptGen\main_1.scala:11: error: not found: value project
[WARNING] val targetParam = if (project("targets")==null ||
project("targets").length==0) project("target")
[WARNING]
^
[WARNING]
C:\UDigEclipse\sdk-build-workspace\trunk\extras\headlessbuild\target
\.sc
alaScriptGen\main_1.scala:12: error: not found: value project
[WARNING] else project("targets")
[WARNING] ^
[WARNING]
C:\UDigEclipse\sdk-build-workspace\trunk\extras\headlessbuild\target
\.sc
alaScriptGen\main_1.scala:15: error: not found: value log
[WARNING] log.error("No targets defined for execution")
[WARNING] ^
[WARNING]
C:\UDigEclipse\sdk-build-workspace\trunk\extras\headlessbuild\target
\.sc
alaScriptGen\main_1.scala:18: error: not found: value project
[WARNING] for( target <- project("targets").split(",") )
yield{
[WARNING] ^
[WARNING]
C:\UDigEclipse\sdk-build-workspace\trunk\extras\headlessbuild\target
\.sc
alaScriptGen\main_1.scala:29: error: value filter is not a member of
Nothing
[WARNING] val errors = targets.filter( _.isInstanceOf[Unknown] )
[WARNING] ^
[WARNING]
C:\UDigEclipse\sdk-build-workspace\trunk\extras\headlessbuild\target
\.sc
alaScriptGen\main_1.scala:9: error: not found: value project
[WARNING] Ant.libs++=project.getCompileClasspathElements()
[WARNING] ^
[WARNING]
C:\UDigEclipse\sdk-build-workspace\trunk\extras\headlessbuild\target
\.sc
alaScriptGen\main_1.scala:45: error: value foreach is not a member of
Nothing
[WARNING] targets.foreach{ target=>
[WARNING] ^
[WARNING]
C:\UDigEclipse\sdk-build-workspace\trunk\extras\headlessbuild\target
\.sc
alaScriptGen\main_1.scala:53: error: not found: value project
[WARNING] val ANT_OPTS = if( project("ANT_OPTS")!=null )
[WARNING] ^
[WARNING]
C:\UDigEclipse\sdk-build-workspace\trunk\extras\headlessbuild\target
\.sc
alaScriptGen\main_1.scala:54: error: not found: value project
[WARNING] project("ANT_OPTS").split(",")
[WARNING] ^
[WARNING]
C:\UDigEclipse\sdk-build-workspace\trunk\extras\headlessbuild\target
\.sc
alaScriptGen\main_1.scala:88: error: not found: value project
[WARNING] if(project("configs")!=null){
[WARNING] ^
[WARNING]
C:\UDigEclipse\sdk-build-workspace\trunk\extras\headlessbuild\target
\.sc
alaScriptGen\main_1.scala:89: error: not found: value project
[WARNING]
buildProps.appendOutputStream.writeLine("configs="+project("configs"))
[WARNING] ^
[WARNING]
C:\UDigEclipse\sdk-build-workspace\trunk\extras\headlessbuild\target
\.sc
alaScriptGen\main_1.scala:91: error: not found: value project
[WARNING] if(project("offline")!=null){
[WARNING] ^
[WARNING]
C:\UDigEclipse\sdk-build-workspace\trunk\extras\headlessbuild\target
\.sc
alaScriptGen\main_1.scala:114: error: not found: value log
[WARNING] log.info("executing: '"+cmd.mkString(" ")+"'")
[WARNING] ^
[WARNING]
C:\UDigEclipse\sdk-build-workspace\trunk\extras\headlessbuild\target
\.sc
alaScriptGen\main_1.scala:117: error: not found: value log
[WARNING] in.lines.foreach( line => log.info( line ) )
[WARNING] ^
[WARNING]
C:\UDigEclipse\sdk-build-workspace\trunk\extras\headlessbuild\target
\.sc
alaScriptGen\main_1.scala:176: error: not found: value project
[WARNING]
net.refractions.udig.build.pack.Package(buildProps, project, log)
[WARNING]
^
[WARNING] 16 errors found
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] command line returned non-zero value:1
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 14 seconds
[INFO] Finished at: Mon Sep 22 16:38:08 EDT 2008
[INFO] Final Memory: 8M/17M
[INFO]
------------------------------------------------------------------------
-----
If there is any further info I could provide please let me know. I
have
configured what I believe to be the correct buildtargets, which
might be
what my problem is...I have the eclipse 3.4 rcp downloaded with the
extras(from udigs website) unzipped into the eclipse directory. Is
there something more I might be missing?
Shane
---
Shane Smith
IP Systems International, LLC.
3101 American Legion Road
Chesapeake, VA 23321
The information contained in this message may be company sensitive and
is for the intended addressee only. Any unauthorized use,
dissemination
of the information, or copying of this message is prohibited. If you
are
not the intended addressee, please notify the sender immediately and
delete this message.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Harry
Bullen
Sent: Wednesday, September 17, 2008 8:41 PM
To: User-friendly Desktop Internet GIS
Subject: Re: [udig-devel] Creating a UDig SDK using eclipse 3.4
Ugh you're having some of the same problems that I have had.
Unfortunately I never fixed them. Good luck and make sure you tell us
when you do.
On Wed, Sep 17, 2008 at 4:07 PM, Shane Smith <[EMAIL PROTECTED]>
wrote:
Hello Everyone,
I had a question in regards to making an SDK from trunk. I've been
following the instructions on the UDig site
<http://udig.refractions.net/confluence/display/ADMIN/SDK+Export+Procedu
re>
for creating an SDK, but I haven't had any luck. After following the
steps
listed I keep getting the following error:
Unable to find plug-in: com.ibm.icu.nl1_3.4.4.v200606220026. Please
check
the error log for more details.
Unable to find plug-in: com.ibm.icu.nl1_3.4.4.v200606220026. Please
check
the error log for more details.
I am running eclipse RCP 3.4 (Ganymede) with the extras installed
that
are
on the udig site. I'm *guessing* it has something to do with the
fact
that
I'm trying to do this in eclipse 3.4....however, I'm not certain at
all.
The plugin that it says it is unable to find is definitely in the
eclipse
plugins directory. I was wondering if anyone had any insight, input
or
updated instructions...
Thanks for your time and I appreciate any help that can be given,
Shane
- - - -
Shane Smith
Software Engineer
[EMAIL PROTECTED]
I-P Systems International, LLC
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
--
Harry William Bullen IV
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel