Re: Ant test failures in gump

2011-03-01 Thread Stefan Bodewig
On 2011-03-01, Antoine Levy-Lambert wrote:

 OK I have done something.

Thank you.  I have tweaked a few things and am just running the full
testsuite on my windows box where problems with undeleteable jars tend
to show up.

 I have seen that the java resources like ${java:foo!foo.properties} in
 replacetokens-test.xml do not lend themselves to standardisation.

 I wanted to replace ${java:foo!foo.properties} with
 ${java:${resources}!foo.properties} but we would need to have the props
 antlib in ant somehow for that to work.

I wouldn't have a problem with adding a snapshot jar of the props antlib
to lib/optional just like we once had for AntUnit before it was
released.

 When I started to do these changes, I had forgotten to tell my IDE not
 to create tabs.

Better make that your IDE's default setting ;-)

 So after the fact I went chasing tabs in the complete directory
 src/tests/antunit.

Thanks

Stefan

-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



jar that uses an sqlite database - how do I add the database to the jar

2011-03-01 Thread ericbee
Hi,
I'm developing a java application in eclipse. It connects to an sqlite
database. When running 
in the eclipse ide, all is well. I can connect to the database and  delete,
update, insert rows.

I am trying to jar the application. However, I can not add the sqlite
database correctly to the jar. 

The eclipse supplied jar using the wizard supplies the following code: 

?xml version=1.0 encoding=UTF-8 standalone=no?
project default=create_run_jar name=Create Runnable Jar for Project
PLog
!--this file was created by Eclipse Runnable JAR Export Wizard--
!--ANT 1.7 is required --
target name=create_run_jar
jar destfile=C:/eclipse/workspace/PLog/PLog.jar
filesetmanifest=mergewithoutmain
manifest
attribute name=Main-Class value=com.ericbee.gui.MainWindow/
attribute name=Class-Path value=./
/manifest
fileset dir=C:/eclipse/workspace/PLog/bin/
zipfileset excludes=META-INF/*.SF src=C:/Sqlite/sqlitejdbc-v056.jar/
/jar
/target
/project

The above runs, the jar for the sqlite jdbc is added, but does not find
the database (C:\eclipse\workspace\PLog \resources\PLog.db ). I have created
a resources folder that contains the database and I'am trying to add the
resourcess folder to the jar with  the following code as a first step. 

target name=resources  
copy todir=C:/eclipse/workspace/PLog/bin  
fileset dir=resources / 
/copy 
/target 

Any help as to how I add the database to the jar would be really
appreciated, eric
   

-- 
View this message in context: 
http://ant.1045680.n5.nabble.com/jar-that-uses-an-sqlite-database-how-do-I-add-the-database-to-the-jar-tp3404703p3404703.html
Sent from the Ant - Dev mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



antcontrib settings

2011-03-01 Thread Ajitesh
hi 
I am trying to use the FOR loop present in antcontrib jar file - ant-contrib-
1.0b3.jar in my build.xml;
but getting below error while running the 
  
D:\buildFRIDAYant

Buildfile: D:\buildFRIDAY\build.xml




BUILD FAILED

D:\buildFRIDAY\build.xml:5: taskdef class net.sf.antcontrib.logic.For cannot be

found using the classloader AntClassLoader

 
 
MY Build.xml file is as below:-
 
project name=ObieeBuild default=init basedir=.
description
obiee copy files build file
/description
 taskdef classname=net.sf.antcontrib.logic.For name=for/
   classpath
  pathelement path=${classpath}/
  pathelement location=lib/ant-contrib-1.0b3.jar/
/classpath
 
  !-- set global properties for this build --
  property name=test  location=test/

  target name=init description=copying obiee files 
 echo message=The first five letters of the alphabet are:/
for list=a,b,c,d,e param=letter
  sequential
echoLetter @{letter}/echo
  /sequential
/for
  /target
/project
 
thanks
Ajitesh



-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Re: antcontrib settings

2011-03-01 Thread Peter Reilly
You have not passed in the classpath to the taskdef.
You need to do something like:
 taskdef classname=net.sf.antcontrib.logic.For name=for
  classpath
 pathelement location=lib/ant-contrib-1.0b3.jar/
   /classpath

/taskdef

On Tue, Mar 1, 2011 at 11:40 AM, Ajitesh ajites...@yahoo.com wrote:
 hi
 I am trying to use the FOR loop present in antcontrib jar file - ant-contrib-
 1.0b3.jar in my build.xml;
 but getting below error while running the

 D:\buildFRIDAYant

 Buildfile: D:\buildFRIDAY\build.xml




 BUILD FAILED

 D:\buildFRIDAY\build.xml:5: taskdef class net.sf.antcontrib.logic.For cannot 
 be

 found using the classloader AntClassLoader



 MY Build.xml file is as below:-

 project name=ObieeBuild default=init basedir=.
    description
        obiee copy files build file
    /description
  taskdef classname=net.sf.antcontrib.logic.For name=for/
   classpath
      pathelement path=${classpath}/
      pathelement location=lib/ant-contrib-1.0b3.jar/
    /classpath

  !-- set global properties for this build --
  property name=test  location=test/

  target name=init description=copying obiee files 
  echo message=The first five letters of the alphabet are:/
 for list=a,b,c,d,e param=letter
  sequential
    echoLetter @{letter}/echo
  /sequential
 /for
  /target
 /project

 thanks
 Ajitesh



 -
 To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
 For additional commands, e-mail: dev-h...@ant.apache.org



-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Re: Website and svnpubsub

2011-03-01 Thread Nicolas Lalevée

Le 28 févr. 2011 à 17:08, Stefan Bodewig a écrit :

 On 2011-02-28, Nicolas Lalevée wrote:

[strip]

 
 So basically it is about having somewhere in svn the sources of the
 website. A buildbot job then takes care of building the html files and
 commit them into a staging branch. The staging branch is published
 via svnpubsub to staging.apache.org. Then we can trigger a merge of
 the staging branch into a production one. Another buildbot build the
 html file and again a svnpubsub push it to www.apache.org.
 
 Is trigger a merge something one does while looking at the staging
 side or a manula svn merge?

There is a trigger a merge on the CMS HTTP API. Behind the scene it is about 
an actual merge an commit. I suppose that in that API you specify which change 
you want to merge.

[strip]

 Then the simplest move may be to:
 * make ant/core/trunk/docs/ the staging website for Ant
 * make ant/core/branches/ANT_SITE/docs/ the production website for Ant
 
 Seems to mirror closely what we currently have - or once had, by now
 trunk is the production source IIUC.

yep
[hibou@minotaur:/www/ant.apache.org]$ svn info | grep URL 
URL: http://svn.apache.org/repos/asf/ant/core/trunk/docs

 
 Or we can change the layout:
 * ant/site/core/sources
 * ant/site/core/staging
 * ant/site/core/production
 * ant/site/ivy/sources
 * ant/site/ivy/staging
 * ant/site/ivy/production

I think I will suggest to have also a such layout for IvyDE so the file tree in 
Ivy site would be less huge (13631 as for now):
* ant/site/ivyde/sources
* ant/site/ivyde/staging
* ant/site/ivyde/production

Maybe in Ivy's site we can try to get rid of some useless history. What about 
getting rid of every RC ?

 
 But this would mean some tweaks in the current build of ant since the
 website is packaged in the distribution.
 
 Would work for me as well.  Ant could even automate the staging process
 from sources since running Anakia should be straight forward inside
 buildbot.

I don't know much about Anakia, but would it handle correctly renamed paged ? 
Would it correctly delete the html files corresponding to the removed xdoc 
pages ? And would it handle correctly that if you change only the template, it 
has too regenerate the entire site ?

About ant's doc, maybe we do like Ivy. Ivy does embed its doc into the 
distribution while also exposing it on the website. In svn, the Ivy docs (the 
source, not the generated html files) are maintained here:
https://svn.apache.org/repos/asf/ant/ivy/core/trunk/doc/
And in the source of Ivy's site, there is a svn:external in 
https://svn.apache.org/repos/asf/ant/ivy/site/history/

Maybe we can do that for Ant too. So the manual would be maintained in 
ant/core/trunk/manual
And have a svn:external in ant/site/core/sources

And I just found that : https://svn.apache.org/repos/asf/ant/site
What its status, its history ?

Nicolas


-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Re: jar that uses an sqlite database - how do I add the database to the jar

2011-03-01 Thread Antoine Levy-Lambert

This is more a question for the user list.

Would you mind reposting this on the user list ?

Explain also where the database is before you run your script, and 
whether the resources target copies something or not.


Regards,

Antoine

On 3/1/2011 5:05 AM, ericbee wrote:

Hi,
 I'm developing a java application in eclipse. It connects to an sqlite
database. When running
in the eclipse ide, all is well. I can connect to the database and  delete,
update, insert rows.

I am trying to jar the application. However, I can not add the sqlite
database correctly to the jar.

The eclipse supplied jar using the wizard supplies the following code:

?xml version=1.0 encoding=UTF-8 standalone=no?
project default=create_run_jar name=Create Runnable Jar for Project
PLog
!--this file was created by Eclipse Runnable JAR Export Wizard--
!--ANT 1.7 is required --
target name=create_run_jar
jar destfile=C:/eclipse/workspace/PLog/PLog.jar
filesetmanifest=mergewithoutmain
manifest
attribute name=Main-Class value=com.ericbee.gui.MainWindow/
attribute name=Class-Path value=./
/manifest
fileset dir=C:/eclipse/workspace/PLog/bin/
zipfileset excludes=META-INF/*.SF src=C:/Sqlite/sqlitejdbc-v056.jar/
/jar
/target
/project

The above runs, the jar for the sqlite jdbc is added, but does not find
the database (C:\eclipse\workspace\PLog \resources\PLog.db ). I have created
a resources folder that contains the database and I'am trying to add the
resourcess folder to the jar with  the following code as a first step.

target name=resources
copy todir=C:/eclipse/workspace/PLog/bin
fileset dir=resources /
/copy
/target

Any help as to how I add the database to the jar would be really
appreciated, eric





-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Re: Ant test failures in gump

2011-03-01 Thread Antoine Levy-Lambert

On 3/1/2011 3:49 AM, Stefan Bodewig wrote:

On 2011-03-01, Antoine Levy-Lambert wrote:


OK I have done something.

Thank you.  I have tweaked a few things and am just running the full
testsuite on my windows box where problems with undeleteable jars tend
to show up.


Thanks too.

I have seen that the java resources like ${java:foo!foo.properties} in
replacetokens-test.xml do not lend themselves to standardisation.
I wanted to replace ${java:foo!foo.properties} with
${java:${resources}!foo.properties} but we would need to have the props
antlib in ant somehow for that to work.

I wouldn't have a problem with adding a snapshot jar of the props antlib
to lib/optional just like we once had for AntUnit before it was
released.

+1

When I started to do these changes, I had forgotten to tell my IDE not
to create tabs.

Better make that your IDE's default setting ;-)


Yes

Antoine

-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Re: Website and svnpubsub

2011-03-01 Thread Stefan Bodewig
On 2011-03-01, Nicolas Lalevée wrote:

 I don't know much about Anakia, but would it handle correctly renamed
 paged ? Would it correctly delete the html files corresponding to the
 removed xdoc pages ?

We don't remove or rename pages ;-) The whole internet would collapse if
people suddenly started to remove pages that other people link to, you
know?

 And would it handle correctly that if you change only the template, it
 has too regenerate the entire site ?

Sometimes it does, but not always.  I can't remember which way around it
is.  Either it regenerates everything if you change priject.xml but
doesn't do so if you change the .vm files or the other way around.

 About ant's doc, maybe we do like Ivy. Ivy does embed its doc into the
 distribution while also exposing it on the website. In svn, the Ivy
 docs (the source, not the generated html files) are maintained here:
 https://svn.apache.org/repos/asf/ant/ivy/core/trunk/doc/ And in the
 source of Ivy's site, there is a svn:external in
 https://svn.apache.org/repos/asf/ant/ivy/site/history/

That would work.  We'd even only need the externals in the tags/branches
for releases.

 And I just found that : https://svn.apache.org/repos/asf/ant/site
 What its status, its history ?

Status: dead.

Its history[1] is an attempt to pull together the Anakia generated pages
from trunk and the manual from the latest release while providing all
the stuff needed to run Anakia.  This was created around the time we
released the first Antlibs as I envisioned they'd create bigger websites
themselves (i.e. more than one page) - this never happened.

For reasons I can't remember I ran out of steam before finishing the
idea.  Antoine used to update this part from time to time but in reality
it turned out to be easier to just keep everything in trunk and forget
about the separation.

Stefan

[1] http://marc.info/?t=11563084791r=1w=2

-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Re: Website and svnpubsub

2011-03-01 Thread Nicolas Lalevée

Le 1 mars 2011 à 16:33, Stefan Bodewig a écrit :

 On 2011-03-01, Nicolas Lalevée wrote:
 
 I don't know much about Anakia, but would it handle correctly renamed
 paged ? Would it correctly delete the html files corresponding to the
 removed xdoc pages ?
 
 We don't remove or rename pages ;-) The whole internet would collapse if
 people suddenly started to remove pages that other people link to, you
 know?

:D
I forgot about that, thanks for the reminder !

 
 And would it handle correctly that if you change only the template, it
 has too regenerate the entire site ?
 
 Sometimes it does, but not always.  I can't remember which way around it
 is.  Either it regenerates everything if you change priject.xml but
 doesn't do so if you change the .vm files or the other way around.

So if it works enough correctly, we could setup a buildbot. I suggest we'll 
look into it after the layout change and the setup of svnpubsub (if there's 
still no objection).

 
 About ant's doc, maybe we do like Ivy. Ivy does embed its doc into the
 distribution while also exposing it on the website. In svn, the Ivy
 docs (the source, not the generated html files) are maintained here:
 https://svn.apache.org/repos/asf/ant/ivy/core/trunk/doc/ And in the
 source of Ivy's site, there is a svn:external in
 https://svn.apache.org/repos/asf/ant/ivy/site/history/
 
 That would work.  We'd even only need the externals in the tags/branches
 for releases.
 
 And I just found that : https://svn.apache.org/repos/asf/ant/site
 What its status, its history ?
 
 Status: dead.
 
 Its history[1] is an attempt to pull together the Anakia generated pages
 from trunk and the manual from the latest release while providing all
 the stuff needed to run Anakia.  This was created around the time we
 released the first Antlibs as I envisioned they'd create bigger websites
 themselves (i.e. more than one page) - this never happened.
 
 For reasons I can't remember I ran out of steam before finishing the
 idea.  Antoine used to update this part from time to time but in reality
 it turned out to be easier to just keep everything in trunk and forget
 about the separation.

ok. Hopefully this time we'll get it working.

Nicolas


-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Re: jar that uses an sqlite database - how do I add the database to the jar

2011-03-01 Thread Conor MacNeill
On Wed, Mar 2, 2011 at 01:39, Antoine Levy-Lambert anto...@gmx.de wrote:
 This is more a question for the user list.

 Would you mind reposting this on the user list ?

 Explain also where the database is before you run your script, and whether
 the resources target copies something or not.


Sorry all, I moderated this through but should have rejected it in
favour of redirecting to the user list as Antoine correctly suggests.

I must have been too excited by having to moderate a message that
wasn't spam :-)

Conor

-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Re: svn commit: r1075566 - in /ant/ivy/core/trunk: ./ doc/use/ src/java/org/apache/ivy/ant/ src/java/org/apache/ivy/core/retrieve/

2011-03-01 Thread Antoine Levy-Lambert
On 3/1/11 7:45 PM, Nicolas Lalevée wrote:
 This feature looks great, but I'm starting now (it took me some time yeah :)) 
 to have some doubt on the implementation. I'll just raise them to get some 
 other point of view.

 Since retrieve is a post resolve task, it can accept nested dependency 
 declaration. Then addin the possibility to have a nested mapper, won't be any 
 conflict. What happen if a mapper get called dependency ? Ant would be 
 confused right ?
Not sure about the answer to that, but I am not so worried. This could
be documented.
 And it seems than the Ant API is leaking into Ivy core here. RetrieveOption 
 is depending on FileNameMapper which is then depending on Mapper from Ant. 
 Shouldn't we try to get Ivy loadable without Ant ?
I do not know whether there are lots of uses of ivy without ant. Any
way, this is just one jar, no ? And mappers are a powerful concept.

 Nicolas

 Le 28 févr. 2011 à 23:27, maart...@apache.org a écrit :


Regards,

Antoine


-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



test failures in gump

2011-03-01 Thread Antoine Levy-Lambert
Hi,

I just worked on import-url-test.xml and junit-outputtoformatters-test.xml.

I see some other tests which neeed fixing :

- replacetokens-test.xml
- native2ascii-test.xml
- rmic-test.xml

Seen the current time, I am not going to fix them tonight.

On top of that I tried to make sense of the error message of
replacetokens-test.xml (below) but I do not get it ...

Regards,

Antoine

au:antunit] Build File: 
/srv/gump/public/workspace/ant/src/tests/antunit/filters/replacetokens-test.xml
[au:antunit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 0.429 sec
[au:antunit] Target: testFileEndsWithToken took 0.026 sec
[au:antunit] Target: testPropertiesResource  FAILED
[au:antunit]at line 179, column 37
[au:antunit]Message: Expected resource '/tmp/testoutput/text.txt' to 
contain value 'Hello, Ant!' but was '${/tmp/testoutput/text.txt}'
[au:antunit]took 0.334 sec



-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org