Going back to some of your original questions: 1. The default behavior is to build cross-platform. If you only care about the platform you're on, there's a *-one family of targets, and to leave things like samples and tools behind, a *-dev family. Try ant dist-dev to make a one-platform distribution without samples or tools, although you might find you actually *want* especially the tools. But most of us don't iterate on them as often, which is why they're left out from those rules. Or, use dist-one if you do want them. 2. As a hack to your svn issue, if you just pre-define the ant properties it's supposed to set from svn info and svnversion, the SvnInfoTask will skip over the work (and thus skip not finding svn). That'd look something like: - ant -dgwt.svnrev=tr...@5678 dist-one 3. There's no reason cygwin shouldn't work for you, but you don't need it either. There's a perfectly good native Windows svn at http://www.collab.net/downloads/subversion/. If you're already using cygwin, e.g. for git, of course, then as noted it *should* have worked fine... we need[*] a svnversion and svn executable on the command line, but we don't care which port or environment. 4. Your LONG compiler errors in Browser are screwy; as Eric says, we don't see them... and we're desparately trying to retire our swt dependency anyway. But at a guess, I suspect you've got different Eclipse jars on your classpath than you "should," especially if you're building from some Eclipse. I haven't done an exhaustive check in all the jars, but in $GWT_TOOLS/lib/eclipse/org.eclipse.swt.gtk-linux-3.2.1.jar I see only the ...internal.gtk.LONG class, *not* the internal.LONG variant. I suspect you're getting a more modern Eclipse jar, and that they must have refactored it up or somesuch. Ant -v will report the classpath; I suspect you'll find a stray jar from outside the GWT and GWT_TOOLS hierarchies which is messing you up. (My own ant -v is below, but you shouldn't need to do the 1:1 matching; just look for something from the wrong directories!) - [gwt.javac] 'C:\Documents and Settings\fabbott\My Documents\GWTs\collections\build\out\dev\linux\bin;C:\Documents and Settings\fabbott\My Documents\GWTs\tools\lib\eclipse\org.eclipse.swt.gtk-linux-3.2.1.jar;C:\Documents and Settings\fabbott\My Documents\GWTs\collections\build\out\dev\core\bin;C:\Documents and Settings\fabbott\My Documents\GWTs\collections\build\out\dev\core\alldeps.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-launcher.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-antlr.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-apache-bcel.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-apache-bsf.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-apache-log4j.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-apache-oro.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-apache-regexp.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-apache-resolver.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-commons-logging.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-commons-net.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-contrib-1.0b3.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-jai.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-javamail.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-jdepend.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-jmf.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-jsch.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-junit.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-netrexx.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-nodeps.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-starteam.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-stylebook.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-swing.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-testutil.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-trax.jar;C:\Program Files\apache-ant-1.7.1\lib\ant-weblogic.jar;C:\Program Files\apache-ant-1.7.1\lib\ant.jar;C:\Program Files\apache-ant-1.7.1\lib\xercesImpl.jar;C:\Program Files\apache-ant-1.7.1\lib\xml-apis.jar;c:\Progra~1\Java\jdk1.6.0_14\lib\tools.jar'
Hope those help! [*] there's some suggestion to use SvnKit instead, because people keep updating graphical tools like TortoiseSVN, and then getting newer .svn directories than their command-line tools can handle and having errors because of that. I've resisted SvnKit, though, because I think it just adds a third way for things to get skewed... On Sun, Oct 4, 2009 at 8:38 PM, tfga <thiago...@gmail.com> wrote: > > Sorry. I still get the same thing :( > > > On Oct 4, 5:57 pm, John LaBanca <jlaba...@google.com> wrote: > > You might also need to do an 'ant clean' after recent updates. > > Thanks, > > John LaBanca > > jlaba...@google.com > > > > On Sun, Oct 4, 2009 at 1:27 PM, tfga <thiago...@gmail.com> wrote: > > > > > Thank you for you reply, Eric. > > > > > I was launching ant from within Eclipse. I ran it under cygwin and got > > > a different error (below). I'll try to run it under cmd.exe, as you > > > suggested. > > > > > gwtc: > > > [java] Compiling module com.google.gwt.sample.mail.Mail > > > [java] Scanning for additional dependencies: file:/C:/Documents > > > %20and%20Settings/tfga/workspace/gwt/samples/mail/src/com/google/gwt/ > > > sample/mail/client/Mail.java > > > [java] Adding '2' new generated units > > > [java] Validating newly compiled units > > > [java] Removing units with errors > > > [java] [ERROR] Errors in 'transient source for > > > com.google.gwt.sample.mail.client.Mail_BinderImpl' > > > [java] [ERROR] Line 20: The method addNorth > > > (Widget, double) in the type DockLayoutPanel is not applicable for the > > > arguments (TopPanel, int, int) > > > [java] [ERROR] Line 21: The method addWest > > > (Widget, double) in the type DockLayoutPanel is not applicable for the > > > arguments (Shortcuts, int, int) > > > [java] [ERROR] Line 22: The method addNorth > > > (Widget, double) in the type DockLayoutPanel is not applicable for the > > > arguments (MailList, int, int) > > > [java] See snapshot: c:\DOCUME~1\tfga > > > \CONFIG~1\Temp > > > > \com.google.gwt.sample.mail.client.Mail_BinderImpl2569137898788811986.java > > > [java] [ERROR] Unable to find recently-generated type > > > 'com.google.gwt.sample.mail.client.Mail_BinderImpl > > > [java] [ERROR] Errors in 'file:/C:/Documents%20and%20Settings/ > > > tfga/workspace/gwt/samples/mail/src/com/google/gwt/sample/mail/client/ > > > Mail.java' > > > [java] [ERROR] Internal compiler error > > > [java] java.lang.RuntimeException: Unable to commit generated > > > files > > > [java] at > > > > > > com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds > > > (WebModeCompilerFrontEnd.java:143) > > > [java] at com.google.gwt.dev.jdt.AbstractCompiler > > > $CompilerImpl.process(AbstractCompiler.java:161) > > > [java] at org.eclipse.jdt.internal.compiler.Compiler.compile > > > (Compiler.java:444) > > > [java] at com.google.gwt.dev.jdt.AbstractCompiler > > > $CompilerImpl.compile(AbstractCompiler.java:84) > > > [java] at com.google.gwt.dev.jdt.AbstractCompiler > > > $CompilerImpl.compile(AbstractCompiler.java:196) > > > [java] at com.google.gwt.dev.jdt.AbstractCompiler > > > $CompilerImpl.access$300(AbstractCompiler.java:70) > > > [java] at com.google.gwt.dev.jdt.AbstractCompiler.compile > > > (AbstractCompiler.java:481) > > > [java] at > > > > com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations > > > (BasicWebModeCompiler.java:113) > > > [java] at > > > > > > com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations > > > (WebModeCompilerFrontEnd.java:49) > > > [java] at > > > com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile > > > (JavaToJavaScriptCompiler.java:415) > > > [java] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile > > > (JavaScriptCompiler.java:32) > > > [java] at com.google.gwt.dev.Precompile.precompile > > > (Precompile.java:507) > > > [java] at com.google.gwt.dev.Precompile.precompile > > > (Precompile.java:408) > > > [java] at com.google.gwt.dev.Compiler.run(Compiler.java:194) > > > [java] at com.google.gwt.dev.Compiler$1.run(Compiler.java: > > > 145) > > > [java] at com.google.gwt.dev.CompileTaskRunner.doRun > > > (CompileTaskRunner.java:89) > > > [java] at > > > com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger > > > (CompileTaskRunner.java:83) > > > [java] at com.google.gwt.dev.Compiler.main(Compiler.java:152) > > > [java] Caused by: > > > com.google.gwt.core.ext.UnableToCompleteException: (see previous log > > > entries) > > > [java] at > > > com.google.gwt.dev.javac.StandardGeneratorContext.finish > > > (StandardGeneratorContext.java:391) > > > [java] at > > > > > > com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds > > > (WebModeCompilerFrontEnd.java:141) > > > [java] ... 17 more > > > [java] > > > [java] [ERROR] Unexpected > > > [java] java.lang.RuntimeException: Unable to commit generated > > > files > > > [java] at > > > > > > com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds > > > (WebModeCompilerFrontEnd.java:143) > > > [java] at com.google.gwt.dev.jdt.AbstractCompiler > > > $CompilerImpl.process(AbstractCompiler.java:161) > > > [java] at org.eclipse.jdt.internal.compiler.Compiler.compile > > > (Compiler.java:444) > > > [java] at com.google.gwt.dev.jdt.AbstractCompiler > > > $CompilerImpl.compile(AbstractCompiler.java:84) > > > [java] at com.google.gwt.dev.jdt.AbstractCompiler > > > $CompilerImpl.compile(AbstractCompiler.java:196) > > > [java] at com.google.gwt.dev.jdt.AbstractCompiler > > > $CompilerImpl.access$300(AbstractCompiler.java:70) > > > [java] at com.google.gwt.dev.jdt.AbstractCompiler.compile > > > (AbstractCompiler.java:481) > > > [java] at > > > > com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations > > > (BasicWebModeCompiler.java:113) > > > [java] at > > > > > > com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations > > > (WebModeCompilerFrontEnd.java:49) > > > [java] at > > > com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile > > > (JavaToJavaScriptCompiler.java:415) > > > [java] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile > > > (JavaScriptCompiler.java:32) > > > [java] at com.google.gwt.dev.Precompile.precompile > > > (Precompile.java:507) > > > [java] at com.google.gwt.dev.Precompile.precompile > > > (Precompile.java:408) > > > [java] at com.google.gwt.dev.Compiler.run(Compiler.java:194) > > > [java] at com.google.gwt.dev.Compiler$1.run(Compiler.java: > > > 145) > > > [java] at com.google.gwt.dev.CompileTaskRunner.doRun > > > (CompileTaskRunner.java:89) > > > [java] at > > > com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger > > > (CompileTaskRunner.java:83) > > > [java] at com.google.gwt.dev.Compiler.main(Compiler.java:152) > > > [java] Caused by: > > > com.google.gwt.core.ext.UnableToCompleteException: (see previous log > > > entries) > > > [java] at > > > com.google.gwt.dev.javac.StandardGeneratorContext.finish > > > (StandardGeneratorContext.java:391) > > > [java] at > > > > > > com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds > > > (WebModeCompilerFrontEnd.java:141) > > > [java] ... 17 more > > > > > On Oct 4, 1:39 pm, Eric Ayers <zun...@google.com> wrote: > > > > You need to run your build under the windows command shell. That > > > probably > > > > means you need to get the native windows svn executable too. > > > > > > On Sun, Oct 4, 2009 at 1:23 AM, tfga <thiago...@gmail.com> wrote: > > > > > > > Hi, > > > > > > > I'm trying to build trunk on Windows. I followed the instructions > from > > > > > > > > http://code.google.com/webtoolkit/makinggwtbetter.html#compiling > > > > > > > The 1st error I got was: > > > > > > > gwt\common.ant.xml:276: Unable to launch command: svn info > > > > > > > So I installed the Cygwin port of svn and added it's path to $PATH. > > > > > Now I get this: > > > > > > > linux: > > > > > compile: > > > > > [mkdir] Created dir: C:\Documents and > Settings\tfga\workspace\gwt > > > > > \build\out\dev\linux\bin > > > > > [gwt.javac] Compiling 11 source files to C:\Documents and > Settings\tfga > > > > > \workspace\gwt\build\out\dev\linux\bin > > > > > [gwt.javac] C:\Documents and > Settings\tfga\workspace\gwt\dev\linux\src > > > > > \org\eclipse\swt\browser\Browser.java:620: reference to LONG is > > > > > ambiguous, both class org.eclipse.swt.internal.gtk.LONG in > > > > > org.eclipse.swt.internal.gtk and class > org.eclipse.swt.internal.LONG > > > > > in org.eclipse.swt.internal match > > > > > [gwt.javac] > getDisplay().setData(ADD_WIDGET_KEY, > > > new > > > > > Object[] {new > > > > > LONG(mozillaHandle), this}); > > > > > [gwt.javac] > > > > > ^ > > > > > [gwt.javac] C:\Documents and > Settings\tfga\workspace\gwt\dev\linux\src > > > > > \org\eclipse\swt\browser\Browser.java:1340: reference to LONG is > > > > > ambiguous, both class org.eclipse.swt.internal.gtk.LONG in > > > > > org.eclipse.swt.internal.gtk and class > org.eclipse.swt.internal.LONG > > > > > in org.eclipse.swt.internal match > > > > > [gwt.javac] display.setData(ADD_WIDGET_KEY, new Object[] {new > LONG > > > > > (mozillaHandle), null}); > > > > > [gwt.javac] ^ > > > > > [gwt.javac] 2 errors > > > > > > > Why is it running the "linux" target if I'm using Windows? Do I > have > > > > > to install the windows native port of svn? And what about these > > > > > compilation errors? > > > > > > > Regards, > > > > > Thiago > > > > > > -- > > > > Eric Z. Ayers > > > > Google Web Toolkit, Atlanta, GA USA > > > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---