Scott-
i think what Pawel is suggesting is there is a 'demonstrable' need for a Struts
Grails plugin
I have some grails code here so i might decide to tackle this myself..altho i
think
musachy started this ..i dont know how far along he was able to get
BTW my last go around developing the last struts plugin pom.xml revealed some
some funky behaviour in com.google.gwt.util.tools.Utility
package com.google.gwt.util.tools;
public final class Utility {
private static void computeInstallationPath()
{
try
{
String override = System.getProperty("gwt.devjar");
// if (override == null)
// {
System.out.println("override is null");
//Hack!
if(override == null) override = new
String("jar:file://F:/GWT/gwt-windows-1.4.60/gwt-dev-windows.jar");
///!com/google/gwt/util/tools/Utility.class");
System.out.println("override = "+override);
String partialPath = Utility.class.getName().replace('.', '/').concat(
".class");
//Hack!
partialPath = new String("jar:file://F:/GWT/GWT-WI~1.60/gwt.jar");
///!com/google/gwt/util/tools/Utility.class");
System.out.println("partialpath = "+partialPath);
//URL url = new URL(partialPath);
//Utility.class.getClassLoader().getResource(partialPath);
//System.out.println("url = "+url.getContent().toString());
//url = new
URL("jar://F:/mygwt/my-gwt-read-only/com/google/gwt/util/tools/Utility.class");
//URL always came back null so this branch never launched
//if (url != null && "jar".equals(url.getProtocol()))
//{
System.out.println("url != null path taken");
//Hack!
String path=new String("file:/F:/GWT/GWT-WI~1.60"); //null; // =
url.toString();
System.out.println("path = "+path);
String jarPath = path.substring(path.indexOf("file:"));
System.out.print("jarPath = "+jarPath);
//Hack!
// File devJarFile = new File(URI.create(jarPath));
java.io.File devJarFile = new File("F:/GWT/GWT-WI~1.60/gwt.jar");
System.out.println("devJarFile = "+devJarFile);
if (!devJarFile.isFile())
{
System.out.println("Could not find jar file; "
+ devJarFile.getCanonicalPath()
+ " does not appear to be a valid file");
}
sDevJarName = devJarFile.getName();
System.out.println("sDevJarName = "+sDevJarName);
String dirPath = jarPath.substring(0, jarPath.lastIndexOf('/') + 1);
System.out.println("dirPath = "+dirPath);
//Hack!
// File installDirFile = new File(URI.create(dirPath));
File installDirFile = new File("F:/GWT/GWT-WI~1.60");
System.out.println("installDirFile = "+installDirFile.getName());
if (!installDirFile.isDirectory())
{
System.out.println("installDirFile is a folder!!!!!!");
System.out.println("Could not find installation directory; "
+ installDirFile.getCanonicalPath()
+ " does not appear to be a valid directory");
}
sInstallPath = installDirFile.getCanonicalPath().replace(
File.separatorChar, '/');
System.out.println("sInstallPath = "+sInstallPath);
// }
// else
// {
// System.out.println(
// "Cannot determine installation directory; apparently not running
from a jar");
// }
// }
// else
// {
// override = override.replace('\\', '/');
// System.out.println("override = "+override);
// int pos = override.lastIndexOf('/');
// System.out.println("pos = "+pos);
// if (pos < 0) {
// sInstallPath = "";
// sDevJarName = override;
// System.out.println("sDevJarName = "+sDevJarName);
// }
// else
// {
// sInstallPath = override.substring(0, pos);
// System.out.println("sInstallPath = "+sInstallPath);
// sDevJarName = override.substring(pos + 1);
// System.out.println("sDevJarName = "+sDevJarName);
// }
// }
}
catch (IOException e)
{
System.out.println("Installation problem detected, please reinstall GWT"+
e.getMessage());
}
}
to get back to Scott and Pawles topic..what does everybody think of a grails
plugin?
Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung.
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est
interdite. Ce message sert à l'information seulement et n'aura pas n'importe
quel effet légalement obligatoire. Étant donné que les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Fri, 12 Jun 2009 05:10:09 -0500
> Subject: Re: [OT]Moving from Struts2 to grails, your thoughts
> From: [email protected]
> To: [email protected]
>
> Was this a question about moving from Struts 2 to Grails or how to get the
> output stream?
>
> 2009/6/12 Paweł Wielgus <[email protected]>
>
> > Hi all,
> > i'm active in rails and struts1 and struts2,
> > languages are java and ruby and javascript.
> >
> > As for rails i use jruby instead ruby.
> >
> > What framework will my next app be implemented in? - struts2
> > Why? - freedom of choice, and tons of bullet proof libraries
> > How my apps look like? mostly far from edit/save/list
> >
> > Best greetings,
> > Paweł Wielgus.
> >
> >
> > 2009/6/12 Dave Newton <[email protected]>:
> > > Musachy Barroso wrote:
> > >>
> > >> Components are for tags
> > >
> > > Maybe where *you're* from. Over here we use random classes for *all* our
> > > functionality!
> > >
> > > Dave
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [email protected]
> > > For additional commands, e-mail: [email protected]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
_________________________________________________________________
Windows Live™ SkyDrive™: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009