newbie problem

CsPĂ©ter <[email protected]> Thu, 28 Oct 2010 15:05:44 +0200
Newsgroups gmane.comp.text.fmpp
Message-ID <[email protected]>
This is a multi-part message in MIME format.

--===============6779763168997722410==
Content-Type: multipart/alternative;
	boundary="--Vipmail.hub9a59eca9b4a5e5cf947bfdbaaf9ec5a"

This is a multi-part message in MIME format.

----Vipmail.hub9a59eca9b4a5e5cf947bfdbaaf9ec5a
Content-Type: text/plain;
	charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

 =0AHi!=0AI'm newbie to fmpp and I couldn't make a front-end application wo=
rk so far. I hope someone can help me.The ant build.xml looks like this (an=
d works) :=0A&lt;!--freemarker--&gt;=09&lt;target name=3D"freemarker" descr=
iption=3D"Freemarker test" depends=3D""&gt;=09=09&lt;taskdef name=3D"freema=
rker" classname=3D"freemarker.ext.ant.FreemarkerXmlTask"&gt;=09=09=09&lt;cl=
asspath&gt;=09=09=09=09&lt;pathelement location=3D"freemarker.jar" /&gt;=09=
=09=09&lt;/classpath&gt;=09=09&lt;/taskdef&gt;=09=09&lt;mkdir dir=3D"sql" /=
&gt;=09=09&lt;freemarker basedir=3D"${xml.dir}" destdir=3D"${sql.dir}" incl=
udes=3D"Actions.xml" template=3D"${templates.dir}/test2.ftl" /&gt;  =09=09&=
lt;!--freemarker basedir=3D"${xml.dir}" destdir=3D"${html.dir}" includes=3D=
"**/*.xml" template=3D"${templates.dir}/test2.ftl" /--&gt;  =09&lt;/target&=
gt;=0AMy own ant task is this:&lt;!--excelgen--&gt;=09&lt;target name=3D"ex=
celgen" description=3D"Generates things" depends=3D"jar"&gt;=09        &lt;=
taskdef name=3D"excelgen" classname=3D"ExcelGen" classpath=3D"${classpath}"=
/&gt;=09=09&lt;excelgen excels=3D"excel1, excel2" ftls=3D"elso.ftl" outputs=
=3D"html" /&gt;      &lt;/target&gt;=0AAnd my java file:=0Apublic void exec=
ute() {=09=09try {=09=09=09File f =3D new File("C:/workspace/TOOLS/excelgen=
/");=09=09=09File basedir =3D new File("C:/workspace/TOOLS/excelgen/xml");=
=09=09=09File destdir =3D new File("C:/workspace/TOOLS/excelgen/sql");=09=
=09=09File include =3D new File("C:/workspace/TOOLS/excelgen/xml/Actions.xm=
l");=09=09=09File template =3D new File("C:/workspace/TOOLS/excelgen/templa=
tes/");=09=09=09=09=09=09Settings s =3D new Settings(f);=09=09=09=09=09=09s=
 .add("sourceRoot", basedir.getAbsolutePath());=09=09=09s.add("outputRoot", =
destdir.getAbsolutePath());=09=09=09s.add("dataRoot", template.getAbsoluteP=
ath());=09=09=09s.execute();=09=09} catch (Exception e1) {=09=09=09=09=09=
=09e1.printStackTrace();=09=09}=09=09log(msg);=09=09=09}=0AThe problem is, =
that it's just copies the Actions.xml file to the /sql directory.=0Adirecto=
ry path:TOOLS ------------xml/Actions.xml            -----------sql/       =
    ------------templates/test2.ftlbulild.xml=0AI have tried a lot of thing=
s including set the "modes" settings, switching the directores and trying o=
ut new parameters (relative paths, put all sources to one directory etc) bu=
t I couldn't make it work. Thank you very much for any help.=0Acheers,Peter=
=0A

----Vipmail.hub9a59eca9b4a5e5cf947bfdbaaf9ec5a
Content-Type: text/html;
	charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><=
meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-8"><st=
yle></style></head><body style=3D"background-image: initial; background-att=
achment: initial; background-origin: initial; background-clip: initial; bac=
kground-color: rgb(255, 255, 255); margin-top: 0px; margin-right: 0px; marg=
in-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; pad=
ding-bottom: 0px; padding-left: 0px; background-position: initial initial; =
background-repeat: initial initial; "><font class=3D"Apple-style-span" face=
=3D"arial" size=3D"4"><span class=3D"Apple-style-span" style=3D"font-size: =
10pt;">&nbsp;</span></font><div style=3D"font-family: arial; font-size: 10p=
t; "><br></div><div style=3D"font-family: arial; font-size: 10pt; ">Hi!</di=
v><div style=3D"font-family: arial; font-size: 10pt; "><br></div><div style=
=3D"font-family: arial; font-size: 10pt; ">I'm newbie to fmpp and I couldn'=
t make a front-end application work so far. I hope someone can help me.</di=
v><div style=3D"font-family: arial; font-size: 10pt; ">The ant build.xml lo=
oks like this (and works) :</div><div style=3D"font-family: arial; font-siz=
e: 10pt; "><br></div><div style=3D"font-family: arial; font-size: 10pt; "><=
div>&lt;!--freemarker--&gt;</div><div><span class=3D"Apple-tab-span" style=
=3D"white-space:pre">=09</span>&lt;target name=3D"freemarker" description=
=3D"Freemarker test" depends=3D""&gt;</div><div><span class=3D"Apple-tab-sp=
an" style=3D"white-space:pre">=09=09</span>&lt;taskdef name=3D"freemarker" =
classname=3D"freemarker.ext.ant.FreemarkerXmlTask"&gt;</div><div><span clas=
s=3D"Apple-tab-span" style=3D"white-space:pre">=09=09=09</span>&lt;classpat=
h&gt;</div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre">=
=09=09=09=09</span>&lt;pathelement location=3D"freemarker.jar" /&gt;</div><=
div><span class=3D"Apple-tab-span" style=3D"white-space:pre">=09=09=09</spa=
n>&lt;/classpath&gt;</div><div><span class=3D"Apple-tab-span" style=3D"whit=
e-space:pre">=09=09</span>&lt;/taskdef&gt;</div><div><span class=3D"Apple-t=
ab-span" style=3D"white-space:pre">=09=09</span>&lt;mkdir dir=3D"sql" /&gt;=
</div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre">=09=09<=
/span>&lt;freemarker basedir=3D"${xml.dir}" destdir=3D"${sql.dir}" includes=
=3D"Actions.xml" template=3D"${templates.dir}/test2.ftl" /&gt; &nbsp;</div>=
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">=09=09</span>=
&lt;!--freemarker basedir=3D"${xml.dir}" destdir=3D"${html.dir}" includes=
=3D"**/*.xml" template=3D"${templates.dir}/test2.ftl" /--&gt; &nbsp;</div><=
div><span class=3D"Apple-tab-span" style=3D"white-space:pre">=09</span>&lt;=
/target&gt;</div></div><div style=3D"font-family: arial; font-size: 10pt; "=
><br></div><div style=3D"font-family: arial; font-size: 10pt; ">My own ant =
task is this:</div><div><div><font class=3D"Apple-style-span" face=3D"arial=
" size=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: 13px;">&l=
t;!--excelgen--&gt;</span></font></div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"><font class=3D"Apple-style-span" face=3D"arial" s=
ize=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: 13px;">=09</=
span></font></span><font class=3D"Apple-style-span" face=3D"arial" size=3D"=
3"><span class=3D"Apple-style-span" style=3D"font-size: 13px;">&lt;target n=
ame=3D"excelgen" description=3D"Generates things" depends=3D"jar"&gt;<span =
class=3D"Apple-tab-span" style=3D"white-space:pre">=09</span></span></font>=
</div><div><font class=3D"Apple-style-span" face=3D"arial" size=3D"3"><span=
 class=3D"Apple-style-span" style=3D"font-size: 13px;">&nbsp;&nbsp; &nbsp; =
&nbsp; &nbsp;&lt;taskdef name=3D"excelgen" classname=3D"ExcelGen" classpath=
=3D"${classpath}"/&gt;</span></font></div><div><span class=3D"Apple-tab-spa=
n" style=3D"white-space:pre"><font class=3D"Apple-style-span" face=3D"arial=
" size=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: 13px;">=
=09=09</span></font></span><font class=3D"Apple-style-span" face=3D"arial" =
size=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: 13px;">&lt;=
excelgen excels=3D"excel1, excel2" ftls=3D"elso.ftl" outputs=3D"html" /&gt;=
 &nbsp;</span></font></div><div><font class=3D"Apple-style-span" face=3D"ar=
ial" size=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: 13px;"=
>&nbsp;&nbsp; &nbsp;&lt;/target&gt;</span></font></div></div><div><font cla=
ss=3D"Apple-style-span" face=3D"arial" size=3D"3"><span class=3D"Apple-styl=
e-span" style=3D"font-size: 13px;"><br></span></font></div><div><font class=
=3D"Apple-style-span" face=3D"arial" size=3D"3"><span class=3D"Apple-style-=
span" style=3D"font-size: 13px;">And my java file:</span></font></div><div>=
<font class=3D"Apple-style-span" face=3D"arial" size=3D"3"><span class=3D"A=
pple-style-span" style=3D"font-size: 13px;"><br></span></font></div><div><d=
iv><font class=3D"Apple-style-span" face=3D"arial" size=3D"3"><span class=
=3D"Apple-style-span" style=3D"font-size: 13px;">public void execute() {</s=
pan></font></div><div><span class=3D"Apple-tab-span" style=3D"white-space:p=
re"><font class=3D"Apple-style-span" face=3D"arial" size=3D"3"><span class=
=3D"Apple-style-span" style=3D"font-size: 13px;">=09=09</span></font></span=
><font class=3D"Apple-style-span" face=3D"arial" size=3D"3"><span class=3D"=
Apple-style-span" style=3D"font-size: 13px;">try {</span></font></div><div>=
<span class=3D"Apple-tab-span" style=3D"white-space:pre"><font class=3D"App=
le-style-span" face=3D"arial" size=3D"3"><span class=3D"Apple-style-span" s=
tyle=3D"font-size: 13px;">=09=09=09</span></font></span><font class=3D"Appl=
e-style-span" face=3D"arial" size=3D"3"><span class=3D"Apple-style-span" st=
yle=3D"font-size: 13px;">File f =3D new File("C:/workspace/TOOLS/excelgen/"=
);</span></font></div><div><span class=3D"Apple-tab-span" style=3D"white-sp=
ace:pre"><font class=3D"Apple-style-span" face=3D"arial" size=3D"3"><span c=
lass=3D"Apple-style-span" style=3D"font-size: 13px;">=09=09=09</span></font=
></span><font class=3D"Apple-style-span" face=3D"arial" size=3D"3"><span cl=
ass=3D"Apple-style-span" style=3D"font-size: 13px;">File basedir =3D new Fi=
le("C:/workspace/TOOLS/excelgen/xml");</span></font></div><div><span class=
=3D"Apple-tab-span" style=3D"white-space:pre"><font class=3D"Apple-style-sp=
an" face=3D"arial" size=3D"3"><span class=3D"Apple-style-span" style=3D"fon=
t-size: 13px;">=09=09=09</span></font></span><font class=3D"Apple-style-spa=
n" face=3D"arial" size=3D"3"><span class=3D"Apple-style-span" style=3D"font=
-size: 13px;">File destdir =3D new File("C:/workspace/TOOLS/excelgen/sql");=
</span></font></div><div><span class=3D"Apple-tab-span" style=3D"white-spac=
e:pre"><font class=3D"Apple-style-span" face=3D"arial" size=3D"3"><span cla=
ss=3D"Apple-style-span" style=3D"font-size: 13px;">=09=09=09</span></font><=
/span><font class=3D"Apple-style-span" face=3D"arial" size=3D"3"><span clas=
s=3D"Apple-style-span" style=3D"font-size: 13px;">File include =3D new File=
("C:/workspace/TOOLS/excelgen/xml/Actions.xml");</span></font></div><div><s=
pan class=3D"Apple-tab-span" style=3D"white-space:pre"><font class=3D"Apple=
-style-span" face=3D"arial" size=3D"3"><span class=3D"Apple-style-span" sty=
le=3D"font-size: 13px;">=09=09=09</span></font></span><font class=3D"Apple-=
style-span" face=3D"arial" size=3D"3"><span class=3D"Apple-style-span" styl=
e=3D"font-size: 13px;">File template =3D new File("C:/workspace/TOOLS/excel=
gen/templates/");</span></font></div><div><span class=3D"Apple-tab-span" st=
yle=3D"white-space:pre"><font class=3D"Apple-style-span" face=3D"arial" siz=
e=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: 13px;">=09=09=
=09</span></font></span></div><div><span class=3D"Apple-tab-span" style=3D"=
white-space:pre"><font class=3D"Apple-style-span" face=3D"arial" size=3D"3"=
><span class=3D"Apple-style-span" style=3D"font-size: 13px;">=09=09=09</spa=
n></font></span><font class=3D"Apple-style-span" face=3D"arial" size=3D"3">=
<span class=3D"Apple-style-span" style=3D"font-size: 13px;">Settings s =3D =
new Settings(f);</span></font><span class=3D"Apple-style-span" style=3D"fon=
t-family: arial; font-size: 13px; white-space: pre; ">=09=09=09</span></div=
><div><span class=3D"Apple-tab-span" style=3D"white-space:pre"><font class=
=3D"Apple-style-span" face=3D"arial" size=3D"3"><span class=3D"Apple-style-=
span" style=3D"font-size: 13px;">=09=09=09</span></font></span><font class=
=3D"Apple-style-span" face=3D"arial" size=3D"3"><span class=3D"Apple-style-=
span" style=3D"font-size: 13px;">s.add("sourceRoot", basedir.getAbsolutePat=
h());</span></font></div><div><span class=3D"Apple-tab-span" style=3D"white=
-space:pre"><font class=3D"Apple-style-span" face=3D"arial" size=3D"3"><spa=
n class=3D"Apple-style-span" style=3D"font-size: 13px;">=09=09=09</span></f=
ont></span><font class=3D"Apple-style-span" face=3D"arial" size=3D"3"><span=
 class=3D"Apple-style-span" style=3D"font-size: 13px;">s.add("outputRoot", =
destdir.getAbsolutePath());</span></font></div><div><span class=3D"Apple-ta=
b-span" style=3D"white-space:pre"><font class=3D"Apple-style-span" face=3D"=
arial" size=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: 13px=
;">=09=09=09</span></font></span><font class=3D"Apple-style-span" face=3D"a=
rial" size=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: 13px;=
">s.add("dataRoot", template.getAbsolutePath());</span></font></div><div><s=
pan class=3D"Apple-tab-span" style=3D"white-space:pre"><font class=3D"Apple=
-style-span" face=3D"arial" size=3D"3"><span class=3D"Apple-style-span" sty=
le=3D"font-size: 13px;">=09=09=09</span></font></span><font class=3D"Apple-=
style-span" face=3D"arial" size=3D"3"><span class=3D"Apple-style-span" styl=
e=3D"font-size: 13px;">s.execute();</span></font></div><div><span class=3D"=
Apple-tab-span" style=3D"white-space:pre"><font class=3D"Apple-style-span" =
face=3D"arial" size=3D"3"><span class=3D"Apple-style-span" style=3D"font-si=
ze: 13px;">=09=09</span></font></span><font class=3D"Apple-style-span" face=
=3D"arial" size=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: =
13px;">} catch (Exception e1) {</span></font><span class=3D"Apple-style-spa=
n" style=3D"font-family: arial; font-size: 13px; white-space: pre; ">=09=09=
=09</span></div><div><span class=3D"Apple-tab-span" style=3D"white-space:pr=
e"><font class=3D"Apple-style-span" face=3D"arial" size=3D"3"><span class=
=3D"Apple-style-span" style=3D"font-size: 13px;">=09=09=09</span></font></s=
pan><font class=3D"Apple-style-span" face=3D"arial" size=3D"3"><span class=
=3D"Apple-style-span" style=3D"font-size: 13px;">e1.printStackTrace();</spa=
n></font></div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre=
"><font class=3D"Apple-style-span" face=3D"arial" size=3D"3"><span class=3D=
"Apple-style-span" style=3D"font-size: 13px;">=09=09</span></font></span><f=
ont class=3D"Apple-style-span" face=3D"arial" size=3D"3"><span class=3D"App=
le-style-span" style=3D"font-size: 13px;">}</span></font></div><div><span c=
lass=3D"Apple-tab-span" style=3D"white-space:pre"><font class=3D"Apple-styl=
e-span" face=3D"arial" size=3D"3"><span class=3D"Apple-style-span" style=3D=
"font-size: 13px;">=09=09</span></font></span><font class=3D"Apple-style-sp=
an" face=3D"arial" size=3D"3"><span class=3D"Apple-style-span" style=3D"fon=
t-size: 13px;">log(msg);<span class=3D"Apple-tab-span" style=3D"white-space=
:pre">=09=09</span></span></font></div><div><span class=3D"Apple-tab-span" =
style=3D"white-space: pre; "><font class=3D"Apple-style-span" face=3D"arial=
" size=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: 13px;">=
=09</span></font></span><font class=3D"Apple-style-span" face=3D"arial" siz=
e=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: 13px;">}</span=
></font></div></div><div><font class=3D"Apple-style-span" face=3D"arial" si=
ze=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: 13px; "><br><=
/span></font></div><div><font class=3D"Apple-style-span" face=3D"arial" siz=
e=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: 13px; ">The pr=
oblem is, that it's just copies the Actions.xml file to the /sql directory.=
</span></font></div><div><font class=3D"Apple-style-span" face=3D"arial" si=
ze=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: 13px; "><br><=
/span></font></div><div><font class=3D"Apple-style-span" face=3D"arial" siz=
e=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: 13px;">directo=
ry path:</span></font></div><div><font class=3D"Apple-style-span" face=3D"a=
rial" size=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: 13px;=
">TOOLS ------------xml/Actions.xml</span></font></div><div><font class=3D"=
Apple-style-span" face=3D"arial" size=3D"3"><span class=3D"Apple-style-span=
" style=3D"font-size: 13px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
;-----------sql/</span></font></div><div><font class=3D"Apple-style-span" f=
ace=3D"arial" size=3D"3"><span class=3D"Apple-style-span" style=3D"font-siz=
e: 13px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ------------templates/te=
st2.ftl</span></font></div><div><font class=3D"Apple-style-span" face=3D"ar=
ial" size=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: 13px;"=
>bulild.xml</span></font></div><div><font class=3D"Apple-style-span" face=
=3D"arial" size=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: =
13px;"><br></span></font></div><div><font class=3D"Apple-style-span" face=
=3D"arial" size=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: =
13px;">I have tried a lot of things including set the "modes" settings, swi=
tching the directores and trying out new parameters (relative paths, put al=
l sources to one directory etc) but I couldn't make it work.&nbsp;</span></=
font></div><div><font class=3D"Apple-style-span" face=3D"arial" size=3D"3">=
<span class=3D"Apple-style-span" style=3D"font-size: 13px;">Thank you very =
much for any help.</span></font></div><div><font class=3D"Apple-style-span"=
 face=3D"arial" size=3D"3"><span class=3D"Apple-style-span" style=3D"font-s=
ize: 13px;"><br></span></font></div><div><font class=3D"Apple-style-span" f=
ace=3D"arial" size=3D"3"><span class=3D"Apple-style-span" style=3D"font-siz=
e: 13px;">cheers,</span></font></div><div><font class=3D"Apple-style-span" =
face=3D"arial" size=3D"3"><span class=3D"Apple-style-span" style=3D"font-si=
ze: 13px;">Peter</span></font></div><div><font class=3D"Apple-style-span" f=
ace=3D"arial" size=3D"3"><span class=3D"Apple-style-span" style=3D"font-siz=
e: 13px;"><br></span></font></div></body></html>

----Vipmail.hub9a59eca9b4a5e5cf947bfdbaaf9ec5a--


--===============6779763168997722410==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
--===============6779763168997722410==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
fmpp-open mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fmpp-open

--===============6779763168997722410==--