agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
[Pljava-dev] Switching pljava-examples to Junit and the examples.ddr deployment descriptor
2+ messages / 0 participants
[nested] [flat]

* [Pljava-dev] Switching pljava-examples to Junit and the examples.ddr deployment descriptor
@ 2013-02-17 20:15 
  2013-02-18 00:26 ` [Pljava-dev] Switching pljava-examples to Junit and the examples.ddr deployment descriptor 
  0 siblings, 1 reply; 2+ messages in thread

From:  @ 2013-02-17 20:15 UTC (permalink / raw)

Hello

I've managed to create an ant task that prepares a temporary postgresql
datadir and a junit class that starts the server with that datadir.

Now my plan was to rewrite the existing tests to use JUnit and get run
automatically.

It seems though that the examples.ddr that is part of the examples.jar
is not executed as the employee1 table is not present.

The MANIFEST.MF of target/pljava-examples-0.0.1-SNAPSHOT.jar contains:
	Manifest-Version: 1.0 Built-By: james
	Build-Jdk: 1.7.0_03
	Created-By: Apache Maven 3.0.4
	Archiver-Version: Plexus Archiver
	
	Name: examples.ddr
	SQLJDeploymentDescriptor: TRUE
	
And the .ddr is unchanged by me still in the .jar:

  $ jar tf target/pljava-examples-0.0.1-SNAPSHOT.jar  | grep ddr
  deployment/examples.ddr

The jar should get loaded on startup:

   $ grep pljava.classpath target/pgtmp/postgresql.conf 
   pljava.classpath =
   '/srv/home/james/workspace/pljava/lathspell-pljava/pljava-examples/../pljava-api/target/pljava-api-0.0.1-SNAPSHOT.jar:/srv/home/james/workspace/pljava/lathspell-pljava/pljava-examples/../pljava-jdbc/target/pljava-jdbc-0.0.1-SNAPSHOT.jar:/srv/home/james/workspace/pljava/lathspell-pljava/pljava-examples/target/pljava-examples-0.0.1-SNAPSHOT.jar'

Any ideas what I could have missed?

bye,

-christian-





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* [Pljava-dev] Switching pljava-examples to Junit and the examples.ddr deployment descriptor
  2013-02-17 20:15 [Pljava-dev] Switching pljava-examples to Junit and the examples.ddr deployment descriptor 
@ 2013-02-18 00:26 ` 
  0 siblings, 0 replies; 2+ messages in thread

From:  @ 2013-02-18 00:26 UTC (permalink / raw)

Hello

Found it myself, I forgot about install_jar() and set_classpath().
Now junit tests are running!

bye,

-christian-

Am Sun, 17 Feb 2013 21:15:19 +0100
schrieb Christian Hammers <ch at lathspell.de>:

> Hello
> 
> I've managed to create an ant task that prepares a temporary
> postgresql datadir and a junit class that starts the server with that
> datadir.
> 
> Now my plan was to rewrite the existing tests to use JUnit and get run
> automatically.
> 
> It seems though that the examples.ddr that is part of the examples.jar
> is not executed as the employee1 table is not present.
> 
> The MANIFEST.MF of target/pljava-examples-0.0.1-SNAPSHOT.jar contains:
> 	Manifest-Version: 1.0 Built-By: james
> 	Build-Jdk: 1.7.0_03
> 	Created-By: Apache Maven 3.0.4
> 	Archiver-Version: Plexus Archiver
> 	
> 	Name: examples.ddr
> 	SQLJDeploymentDescriptor: TRUE
> 	
> And the .ddr is unchanged by me still in the .jar:
> 
>   $ jar tf target/pljava-examples-0.0.1-SNAPSHOT.jar  | grep ddr
>   deployment/examples.ddr
> 
> The jar should get loaded on startup:
> 
>    $ grep pljava.classpath target/pgtmp/postgresql.conf 
>    pljava.classpath =
>    '/srv/home/james/workspace/pljava/lathspell-pljava/pljava-examples/../pljava-api/target/pljava-api-0.0.1-SNAPSHOT.jar:/srv/home/james/workspace/pljava/lathspell-pljava/pljava-examples/../pljava-jdbc/target/pljava-jdbc-0.0.1-SNAPSHOT.jar:/srv/home/james/workspace/pljava/lathspell-pljava/pljava-examples/target/pljava-examples-0.0.1-SNAPSHOT.jar'
> 
> Any ideas what I could have missed?
> 
> bye,
> 
> -christian-
> 
> 
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at pgfoundry.org
> http://lists.pgfoundry.org/mailman/listinfo/pljava-dev



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2013-02-18 00:26 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-02-17 20:15 [Pljava-dev] Switching pljava-examples to Junit and the examples.ddr deployment descriptor 
2013-02-18 00:26 ` 

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox