At line 30 added 1 line. |
Next you want to map the schema of the tables that you want to generate data for. To do this, you will make a new file called appfuse-schema.xml. This example will allow you to generate 1500 new users at a time. |
At line 31 removed 1 line. |
|
At line 33 removed 42 lines. |
<project name="dbmonster task example" default="gendb" basedir="."> |
|
<property file="build.properties"/> |
|
<!-- setup classpath --> |
<path id="dbmonster.classpath"> |
<fileset dir="${dbmonster.ant}"> |
<include name="*.jar"/> |
</fileset> |
<fileset dir="${dbmonster.home}"> |
<include name="**/*.jar"/> |
</fileset> |
</path> |
|
<taskdef |
name="dbmonster" |
classname="pl.kernelpanic.dbmonster.ant.DBMonsterTask" |
classpathref="dbmonster.classpath"> |
</taskdef> |
|
<target name="gendb"> |
<dbmonster |
config="${dbmonster.config}/dbmonster.properties" verbose="true"> |
<fileset dir="${dbmonster.schemas}"> |
<include name="*.xml"/> |
</fileset> |
</dbmonster> |
</target> |
</project> |
|
}}} |
|
|
{{{ |
dbmonster.home=/tools/dbmonster-core-1.0.3 |
dbmonster.ant=/tools/monster |
dbmonster.config=/tools/dbmonster-core-1.0.3/config |
dbmonster.schemas=/tools/dbmonster-core-1.0.3/schema |
}}} |
|
|
{{{ |
At line 118 added 45 lines. |
|
|
---- |
{{{ |
<project name="dbmonster task example" default="gendb" basedir="."> |
|
<property file="build.properties"/> |
|
<!-- setup classpath --> |
<path id="dbmonster.classpath"> |
<fileset dir="${dbmonster.ant}"> |
<include name="*.jar"/> |
</fileset> |
<fileset dir="${dbmonster.home}"> |
<include name="**/*.jar"/> |
</fileset> |
</path> |
|
<taskdef |
name="dbmonster" |
classname="pl.kernelpanic.dbmonster.ant.DBMonsterTask" |
classpathref="dbmonster.classpath"> |
</taskdef> |
|
<target name="gendb"> |
<dbmonster |
config="${dbmonster.config}/dbmonster.properties" verbose="true"> |
<fileset dir="${dbmonster.schemas}"> |
<include name="*.xml"/> |
</fileset> |
</dbmonster> |
</target> |
</project> |
|
}}} |
|
|
{{{ |
dbmonster.home=/tools/dbmonster-core-1.0.3 |
dbmonster.ant=/tools/monster |
dbmonster.config=/tools/dbmonster-core-1.0.3/config |
dbmonster.schemas=/tools/dbmonster-core-1.0.3/schema |
}}} |
|
|