XML import

FRED.YY.LIN 林宥延 <[email protected]> Fri, 9 Aug 2013 17:04:28 +0800
Newsgroups gmane.comp.java.scarab.user
Message-ID <[email protected]>
------=_Part_3537_1457811974.1376039113026
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Dear All,



We have successfully use web interface to do XML import.



Now we are doing =E2=80=9Cant =E2=80=93f import.xml=E2=80=9D but failed for=
 many times.



We use scarab 0.21 and copied the import.xml under scarab-0.21\extensions\s=
cripts\import.xml



We modified build.properties and add an property scarab.import.issues.xml =
=3D the xml file we want to import



This xml file can be successfully be imported through web import.



We modified this property in the import.xml and let the value become the xm=
l we want to import.

<property name=3D"scarab.import.issues.xml" value=3D"../src/dtd/scarab-issu=
es-export.xml"/>



In the import.xml  there are also properties

    <pathelement location=3D"${build.dest.scarab}"/>

    <fileset dir=3D"${basedir}/../lib">

      <include name=3D"*.jar"/>

    </fileset>

    <fileset dir=3D"${build.project.webinf.lib}">

      <include name=3D"*.jar"/>

    </fileset>

    <fileset dir=3D"${tomcat.dist.dir}/common/lib">

        <include name=3D"**/servlet*.jar"/>

    </fileset>



First time, error message shows build.project.webinf.lib cannot be found.

I modified the value to scarab-0.21\target\scarab\WEB-INF\lib

The error message disappeared but another one occurred.



${tomcat.dist.dir}/common/lib did not exist

I modified the value to C:\Program Files\Apache Software Foundation\Tomcat =
5.5\common\lib



This error disappear, too.

But it still buid fail due to some problem with ImportIssuesTask



Can someone suggest how to do a correct import through ant ?

Regards,

Fred.yy.Lin
Delta Networks, Inc.
256 Yangguang Street, Neihu,
Taipei 11491, Taiwan
Tel: +886-2-8797-2088  ext.3443 or internal ext.: 112-3443


*************************************************************************
This email message, including any attachments, is for the sole
use of the intended recipient(s) and may contain confidential and
privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message. [Delta Electronics, INC. Taiwan]
*************************************************************************

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3D456&dsMessageId=3D30=
62331

To unsubscribe from this discussion, e-mail: [[email protected]=
is.org].
------=_Part_3537_1457811974.1376039113026
Content-Type: text/html;	charset="big5"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40"><head><meta http-equiv=3DContent-Type content=
=3D"text/html; charset=3Dbig5"><meta name=3DGenerator content=3D"Microsoft =
Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
=09{font-family:=B7s=B2=D3=A9=FA=C5=E9;
=09panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
=09{font-family:=B2=D3=A9=FA=C5=E9;
=09panose-1:2 2 3 9 0 0 0 0 0 0;}
@font-face
=09{font-family:=B2=D3=A9=FA=C5=E9;
=09panose-1:2 2 3 9 0 0 0 0 0 0;}
@font-face
=09{font-family:"\@=B7s=B2=D3=A9=FA=C5=E9";
=09panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
=09{font-family:"\@=B2=D3=A9=FA=C5=E9";
=09panose-1:2 2 3 9 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
=09{margin:0cm;
=09margin-bottom:.0001pt;
=09font-size:12.0pt;
=09font-family:"=B7s=B2=D3=A9=FA=C5=E9","serif";
=09color:black;}
a:link, span.MsoHyperlink
=09{mso-style-priority:99;
=09color:blue;
=09text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
=09{mso-style-priority:99;
=09color:purple;
=09text-decoration:underline;}
code
=09{mso-style-priority:99;
=09font-family:=B2=D3=A9=FA=C5=E9;}
pre
=09{mso-style-priority:99;
=09mso-style-link:"HTML =B9w=B3]=AE=E6=A6=A1 =A6r=A4=B8";
=09margin:0cm;
=09margin-bottom:.0001pt;
=09font-size:12.0pt;
=09font-family:=B2=D3=A9=FA=C5=E9;
=09color:black;}
span.HTML
=09{mso-style-name:"HTML =B9w=B3]=AE=E6=A6=A1 =A6r=A4=B8";
=09mso-style-priority:99;
=09mso-style-link:"HTML =B9w=B3]=AE=E6=A6=A1";
=09font-family:"Courier New";
=09color:black;}
span.EmailStyle20
=09{mso-style-type:personal-reply;
=09font-family:"=B7s=B2=D3=A9=FA=C5=E9","serif";
=09color:blue;
=09font-weight:normal;
=09font-style:normal;
=09text-decoration:none none;}
.MsoChpDefault
=09{mso-style-type:export-only;
=09font-size:10.0pt;}
@page WordSection1
=09{size:612.0pt 792.0pt;
=09margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
=09{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=3Dwhite lang=3DZH-TW=
 link=3Dblue vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal>=
<span lang=3DEN-US style=3D'color:blue'>Dear All,<o:p></o:p></span></p><p c=
lass=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'><o:p>&nbsp;</o:p><=
/span></p><p class=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'>We h=
ave successfully use web interface to do XML import.<o:p></o:p></span></p><=
p class=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'><o:p>&nbsp;</o:=
p></span></p><p class=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'>N=
ow we are doing =A1=A7ant =A1Vf import.xml=A1=A8 but failed for many times.=
<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US style=3D'colo=
r:blue'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US=
 style=3D'color:blue'>We use scarab 0.21 and copied the import.xml under sc=
arab-0.21\extensions\scripts\import.xml<o:p></o:p></span></p><p class=3DMso=
Normal><span lang=3DEN-US style=3D'color:blue'><o:p>&nbsp;</o:p></span></p>=
<p class=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'>We modified bu=
ild.properties and add an property scarab.import.issues.xml =3D the xml fil=
e we want to import<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3D=
EN-US style=3D'color:blue'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal=
><span lang=3DEN-US style=3D'color:blue'>This xml file can be successfully =
be imported through web import.<o:p></o:p></span></p><p class=3DMsoNormal><=
span lang=3DEN-US style=3D'color:blue'><o:p>&nbsp;</o:p></span></p><p class=
=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'>We modified this prope=
rty in the import.xml and let the value become the xml we want to import.<o=
:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US style=3D'color:=
blue'>&lt;property name=3D&quot;scarab.import.issues.xml&quot; value=3D&quo=
t;../src/dtd/scarab-issues-export.xml&quot;/&gt; <o:p></o:p></span></p><p c=
lass=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'><o:p>&nbsp;</o:p><=
/span></p><p class=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'>In t=
he import.xml&nbsp; there are also properties<o:p></o:p></span></p><p class=
=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'>&nbsp;&nbsp;&nbsp; &lt=
;pathelement location=3D&quot;${build.dest.scarab}&quot;/&gt;<o:p></o:p></s=
pan></p><p class=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'>&nbsp;=
&nbsp;&nbsp; &lt;fileset dir=3D&quot;${basedir}/../lib&quot;&gt;<o:p></o:p>=
</span></p><p class=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'>&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;include name=3D&quot;*.jar&quot;/&gt;<o:p><=
/o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US style=3D'color:blue=
'>&nbsp;&nbsp;&nbsp; &lt;/fileset&gt;<o:p></o:p></span></p><p class=3DMsoNo=
rmal><span lang=3DEN-US style=3D'color:blue'>&nbsp;&nbsp;&nbsp; &lt;fileset=
 dir=3D&quot;${build.project.webinf.lib}&quot;&gt;<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'>&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp; &lt;include name=3D&quot;*.jar&quot;/&gt;<o:p></o:p></span></=
p><p class=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'>&nbsp;&nbsp;=
&nbsp; &lt;/fileset&gt;<o:p></o:p></span></p><p class=3DMsoNormal><span lan=
g=3DEN-US style=3D'color:blue'>&nbsp;&nbsp;&nbsp; &lt;fileset dir=3D&quot;$=
{tomcat.dist.dir}/common/lib&quot;&gt;<o:p></o:p></span></p><p class=3DMsoN=
ormal><span lang=3DEN-US style=3D'color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp; &lt;include name=3D&quot;**/servlet*.jar&quot;/&gt;<o:p></o:p=
></span></p><p class=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'>&n=
bsp;&nbsp;&nbsp; &lt;/fileset&gt;<o:p></o:p></span></p><p class=3DMsoNormal=
><span lang=3DEN-US style=3D'color:blue'><o:p>&nbsp;</o:p></span></p><p cla=
ss=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'>First time, error me=
ssage shows build.project.webinf.lib cannot be found. <o:p></o:p></span></p=
><p class=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'>I modified th=
e value to scarab-0.21\target\scarab\WEB-INF\lib <o:p></o:p></span></p><p c=
lass=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'>The error message =
disappeared but another one occurred.<o:p></o:p></span></p><p class=3DMsoNo=
rmal><span lang=3DEN-US style=3D'color:blue'><o:p>&nbsp;</o:p></span></p><p=
 class=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'>${tomcat.dist.di=
r}/common/lib did not exist<o:p></o:p></span></p><p class=3DMsoNormal><span=
 lang=3DEN-US style=3D'color:blue'>I modified the value to C:\Program Files=
\Apache Software Foundation\Tomcat 5.5\common\lib<o:p></o:p></span></p><p c=
lass=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'><o:p>&nbsp;</o:p><=
/span></p><p class=3DMsoNormal><span lang=3DEN-US style=3D'color:blue'>This=
 error disappear, too.<o:p></o:p></span></p><p class=3DMsoNormal><span lang=
=3DEN-US style=3D'color:blue'>But it still buid fail due to some problem wi=
th ImportIssuesTask<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3D=
EN-US style=3D'color:blue'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal=
><span lang=3DEN-US style=3D'color:blue'>Can someone suggest how to do a co=
rrect import through ant ?<o:p></o:p></span></p><div><p class=3DMsoNormal s=
tyle=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN=
-US style=3D'font-family:"Arial","sans-serif";color:blue'>Regards,</span><s=
pan lang=3DEN-US style=3D'color:blue'><o:p></o:p></span></p></div><p class=
=3DMsoNormal><span lang=3DEN-US style=3D'font-family:"Arial","sans-serif";c=
olor:blue'>Fred.yy.Lin</span><span lang=3DEN-US style=3D'color:blue'> <br><=
/span><span lang=3DEN-US style=3D'font-family:"Arial","sans-serif";color:bl=
ue'>Delta Networks, Inc.</span><span lang=3DEN-US style=3D'color:blue'>&nbs=
p;<br></span><span lang=3DEN-US style=3D'font-family:"Arial","sans-serif";c=
olor:blue'>256 Yangguang Street, Neihu, </span><span lang=3DEN-US style=3D'=
color:blue'><br></span><span lang=3DEN-US style=3D'font-family:"Arial","san=
s-serif";color:blue'>Taipei 11491, Taiwan</span><span lang=3DEN-US style=3D=
'color:blue'> <br></span><span lang=3DEN-US style=3D'font-family:"Arial","s=
ans-serif";color:blue'>Tel: +886-2-8797-2088&nbsp; ext.3443 or internal ext=
.: 112-3443</span><span lang=3DEN-US style=3D'color:blue'><o:p></o:p></span=
></p></div></body></html>
<table><tr><td bgcolor=3D#ffffff><font color=3D#000000><pre>***************=
**********************************************************
This email message, including any attachments, is for the sole
use of the intended recipient(s) and may contain confidential and
privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message. [Delta Electronics, INC. Taiwan]
*************************************************************************</=
pre></font></td></tr></table>

------=_Part_3537_1457811974.1376039113026--