ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitriy Korobskiy <dkro...@gmail.com>
Subject Re[4]: Does the IvyDE classpath container have support for source attachments?
Date Fri, 12 Jan 2007 21:49:28 GMT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title></title>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
body {
  margin: 5px 5px 5px 5px;
  background-color: #ffffff;
}
/* ---------- Text Styles ---------- */
hr { color: #000000}
body, table /* Normal text */
{
 font-size: 9pt;
 font-family: 'Courier New';
 font-style: normal;
 font-weight: normal;
 color: #000000;
 text-decoration: none;
}
span.rvts1 /* Heading */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-weight: bold;
 color: #0000ff;
}
span.rvts2 /* Subheading */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-weight: bold;
 color: #000080;
}
span.rvts3 /* Keywords */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-style: italic;
 color: #800000;
}
a.rvts4, span.rvts4 /* Jump 1 */
{
 font-size: 10pt;
 font-family: 'Arial';
 color: #008000;
 text-decoration: underline;
}
a.rvts5, span.rvts5 /* Jump 2 */
{
 font-size: 10pt;
 font-family: 'Arial';
 color: #008000;
 text-decoration: underline;
}
span.rvts6
{
 font-size: 11pt;
 font-family: 'tahoma';
 font-weight: bold;
 color: #ffffff;
 background-color: #0000ff;
}
span.rvts7
{
 font-size: 11pt;
 font-family: 'tahoma';
}
span.rvts8
{
 font-size: 11pt;
 font-family: 'tahoma';
 font-weight: bold;
}
a.rvts9, span.rvts9
{
 font-size: 11pt;
 font-family: 'tahoma';
 color: #0000ff;
 text-decoration: underline;
}
a.rvts10, span.rvts10
{
 color: #0000ff;
 text-decoration: underline;
}
span.rvts11
{
 font-size: 8pt;
 font-family: 'tahoma';
}
span.rvts12
{
 font-size: 8pt;
 font-family: 'tahoma';
 font-weight: bold;
 background-color: #ffffff;
}
a.rvts13, span.rvts13
{
 font-size: 8pt;
 font-family: 'tahoma';
 color: #0000ff;
 background-color: #ffffff;
 text-decoration: underline;
}
span.rvts14
{
 font-size: 8pt;
 font-family: 'tahoma';
}
a.rvts15, span.rvts15
{
 font-size: 8pt;
 font-family: 'tahoma';
 color: #0000ff;
 text-decoration: underline;
}
/* ---------- Para Styles ---------- */
p,ul,ol /* Paragraph Style */
{
 text-align: left;
 text-indent: 0px;
 padding: 0px 0px 0px 0px;
 margin: 0px 0px 0px 0px;
}
.rvps1 /* Centered */
{
 text-align: center;
}
--></style>
</head>
<body>

<p>Xavier,</p>
<p><br></p>
<p>I've tried source ZIP attachment with IvyDE and it worked, but JavaDoc attachment
did not.&nbsp;
<br>I'm configuring JavaDoc in exactly the same way I'm configuring source attachments.</p>
<p>The resolve seemed to have worked fine, but in the end the JavaDoc ZIP is not attached.</p>
<p><br></p>
<p>Do you know whether JavaDoc attachements are supported by IvyDE 1.2.0 or not?</p>
<p><br></p>
<p>Here is the example:</p>
<p><br></p>
<p>\apache\commons-collections\commons-collections-3.2\commons-collections-3.2.jar</p>
<p>\apache\commons-collections\commons-collections-3.2\commons-collections-3.2.zip</p>
<p>\apache\commons-collections\commons-collections-3.2\commons-collections-3.2.javadoc.zip</p>
<p>\apache\commons-collections\commons-collections-3.2\commons-collections-3.2.src.zip</p>
<p><br></p>
<p>&lt;?xml version="1.0"?&gt;</p>
<p>&lt;?xml-stylesheet type="text/xsl" href="http://ivyrep.jayasoft.org/ivy-doc.xsl"?&gt;</p>
<p>&lt;ivy-module version="1.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.jayasoft.org/misc/ivy/ivy.xsd"&gt;</p>
<p>&nbsp; &lt;info organisation="apache" module="commons-collections" revision="3.2"
status="release"/&gt;</p>
<p>&nbsp; &lt;configurations&gt;</p>
<p>&nbsp; &nbsp; &lt;conf name="default"/&gt;</p>
<p>&nbsp; &nbsp; &lt;conf name="ide" description="JavaDoc and sources"/&gt;</p>
<p>&nbsp; &lt;/configurations&gt;</p>
<p>&nbsp; &lt;publications&gt;</p>
<p>&nbsp; &nbsp; &lt;artifact name="commons-collections" type="jar" conf="default"/&gt;</p>
<p>&nbsp; &nbsp; &lt;artifact name="commons-collections" type="src" ext="src.zip"
conf="ide"/&gt;</p>
<p>&nbsp; &nbsp; &lt;artifact name="commons-collections" type="javadoc"
ext="javadoc.zip" conf="ide"/&gt;</p>
<p>&nbsp; &lt;/publications&gt;</p>
<p>&lt;/ivy-module&gt;</p>
<p><br></p>
<p>Dmitriy &lt;1-127-441 @ICQ, DKroot @Skype, DKroot1 @AIM, dkroot1_at_gmail_dot_com
@Google Talk&gt;</p>
<p><br></p>
<p>===8&lt;==============Original message ===============</p>
<p>From: Xavier Hanin</p>
<p>To: Dmitriy Korobskiy</p>
<p>Subject: Does the IvyDE classpath container have support for source attachments?</p>
<p>Sent: Thursday, December 7, 2006</p>
<p><br></p>
<p><span class=rvts11>On 12/7/06,&nbsp;</span><span class=rvts12>Dmitriy
Korobskiy&nbsp;</span><span class=rvts11>wrote:</span></p>
<p><span class=rvts11>Xavier,</span></p>
<p><br></p>
<p><span class=rvts11>Thanks for your explanation. It makes sense. I was longing
for some kind of</span></p>
<p><span class=rvts11>example/documentation for this exciting new feature of IvyDE!</span></p>
<p><br></p>
<p><span class=rvts11>Yes, but this is a user contributed feature, and I hope
more example/documentation &nbsp;will be user contributed too :-)&nbsp;</span></p>
<p><br></p>
<p><br></p>
<p><span class=rvts11>I understand now how it works if you have ZIPs of JavaDocs
and/or source.</span></p>
<p><br></p>
<p><span class=rvts11>Note that according to Peter who developed the feature there
is still problems with javadoc... but if you have sources attached, you have inline javadoc
with eclipse.&nbsp;</span></p>
<p><br></p>
<p><br></p>
<p><span class=rvts11>I have another related question - if a distrubution has
expanded directories in</span></p>
<p><span class=rvts11>repository - say, javadoc/ and src/ - is it possible to
attach those using IvyDE</span></p>
<p><span class=rvts11>and url attribute or something like that?</span></p>
<p><br></p>
<p><span class=rvts11>No, not right now, &nbsp;but it's maybe not too difficult
to develop. Have a look at &nbsp;the code IvyClasspathContainer code, and you'll see how
Peter has implemented the feature. Then you should be able to see if you can tweak it to your
needs.&nbsp;</span></p>
<p><br></p>
<p><span class=rvts11>Xavier&nbsp;</span></p>
<p><br></p>
<p><br></p>
<p><span class=rvts14>&gt;&gt;</span></p>
<p><span class=rvts14>&gt;&gt; Hi,</span></p>
<p><span class=rvts14>&gt;&gt;</span></p>
<p><span class=rvts14>&gt;&gt; As far as I can see from&nbsp;</span><a
class=rvts15 href="http://jira.jayasoft.org/browse/IVYDE-12">http://jira.jayasoft.org/browse/IVYDE-12</a><span
class=rvts11>, the</span></p>
<p><span class=rvts14>&gt;&gt; IvyDE supports source and javadoc attachments.
However, I cannot find</span></p>
<p><span class=rvts14>&gt;&gt; any examples using this feature. As far
as I can read from the&nbsp;</span></p>
<p><span class=rvts14>&gt;&gt; IVYDE-12 issue, I should extend the ivys
in my repository so they</span></p>
<p><span class=rvts14>&gt;&gt; include source and javadoc artifacts. Could
somebody please give a</span></p>
<p><span class=rvts14>&gt;&gt; short example of the use of this feature
or point me to relevant&nbsp;</span></p>
<p><span class=rvts14>&gt;&gt; documentation?</span></p>
<p><br></p>
<p><br></p>
<p><span class=rvts14>XH&gt; There is no documentation for the moment, here
are some basic explanations</span></p>
<p><span class=rvts14>XH&gt; of how it works for the moment:</span></p>
<p><span class=rvts14>XH&gt; When it find a jar artifact to add in the container,
it looks for another&nbsp;</span></p>
<p><span class=rvts14>XH&gt; artifact with the same name and with a "source"
type, and attach it as</span></p>
<p><span class=rvts14>XH&gt; source if it finds one. The type (source) can
be configured.</span></p>
<p><span class=rvts14>XH&gt; So if you want to have source attached you should
have an ivy file like this&nbsp;</span></p>
<p><span class=rvts14>XH&gt; one for your dependency:</span></p>
<p><span class=rvts14>XH&gt; &lt;ivy-module version="1.0"&gt;</span></p>
<p><span class=rvts14>XH&gt; &nbsp; &nbsp; &lt;info organisation="thisorg"
module="thismodule" revision="1.0.4"/&gt;</span></p>
<p><span class=rvts14>XH&gt; &nbsp; &nbsp; &lt;configurations&gt;&nbsp;</span></p>
<p><span class=rvts14>XH&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;conf
name="default"/&gt;</span></p>
<p><span class=rvts14>XH&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;conf
name="sources"/&gt;</span></p>
<p><span class=rvts14>XH&gt; &nbsp; &nbsp; &lt;/configurations&gt;</span></p>
<p><span class=rvts14>XH&gt; &nbsp; &nbsp; &lt;publications&gt;</span></p>
<p><span class=rvts14>XH&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;artifact
name="myartifact" type="jar" conf="default" /&gt;&nbsp;</span></p>
<p><span class=rvts14>XH&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;artifact
name="myartifact" type="source" ext="zip" conf="sources"</span></p>
<p><span class=rvts14>/&gt;&gt;</span></p>
<p><span class=rvts14>XH&gt; &nbsp; &nbsp; &lt;/publications&gt;</span></p>
<p><span class=rvts14>XH&gt; &lt;/ivy-module&gt;</span></p>
<p><span class=rvts14>XH&gt; Then if you depend on it like this:&nbsp;</span></p>
<p><span class=rvts14>XH&gt; &lt;dependency org="thisorg" name="thismodule"
rev="1.0.4"</span></p>
<p><span class=rvts11>conf="default-&gt;&gt;default;dependencies-sources-&gt;sources"
/&gt;</span></p>
<p><br></p>
<p><span class=rvts14>XH&gt; And if you resolve both the default and the dependencies-sources&nbsp;</span></p>
<p><span class=rvts14>XH&gt; configurations in IvyDE, you should get the myartifact.jar
in the container</span></p>
<p><span class=rvts14>XH&gt; with sources from myartifact.zip attached.</span></p>
<p><br></p>
<p><span class=rvts14>XH&gt; Xavier</span></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><span class=rvts14>XH&gt; Best regards,</span></p>
<p><span class=rvts14>&gt;&gt; Jacob Grydholt Jensen&nbsp;</span></p>
<p><span class=rvts14>&gt;&gt;</span></p>
<p><br></p>
<p><span class=rvts11>Dmitriy &lt;1-127-441 @ICQ, DKroot @Skype, DKroot1 @AIM,
dkroot1_at_gmail_dot_com @Google Talk&gt;</span></p>
<p><br></p>
<p>===8&lt;===========End of original message ===========</p>

</body></html>


Mime
View raw message