0 Replies Latest reply: Aug 2, 2010 10:08 AM by 843833 RSS

    man you don't even know how to...

    843833
      use "." and ".." directory. Your javadb.properties contained:

      db.create.src=${javaee.tutorial.home}/examples/common/sql/${db.vendor}/tutorial.sql

      which gave output:

      C:\glassfishv3\glassfish\docs\javaee-tutorial\examples\web\books\build.xml:51: T
      he following error occurred while executing this line:
      C:\glassfishv3\glassfish\docs\javaee-tutorial\examples\bp-project\database-ant.x
      ml:33: java.io.FileNotFoundException: C:\glassfishv3\glassfish\docs\javaee-tutor
      ial\examples\examples\common\sql\javadb\tutorial.sql (The system cannot find the
      path specified)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(Unknown Source)

      So I changed:

      db.create.src=${javaee.tutorial.home}/../examples/common/sql/${db.vendor}/tutorial.sql

      Now you can't accuse of installation platform as you used backward references using "..", you are in full knowledge of the directory structure of your released software. And huh you don't even know that.