You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Tim O'Brien <tm...@mindspring.com> on 2000/06/26 17:17:22 UTC
RE: cvs commit:.... MailMessage.java
I think optional packages are just as important as core packages, but one
thing I'd like to just insert in this discussion is that emailing a message
does not seem to me to be something that should be included as a core
taskdef. It makes more sense to include this as an optional taskdef because
it does not increase the runtime requirements ( See Duncan's spec doc at
http://jakarta.apache.org/cvsweb/index.cgi/jakarta-ant/spec/core.html?rev=1.
1&content-type=text/vnd.viewcvs-markup ).
Further down that road, I don't think that the Ant project should contain
any code that deals specfically with sending email when there is an
established and widely embraced standard in JavaMail. We could reimplement
this under APL in the future, and in my case sending a mail attachment is a
feature which would be used immediately for distributing a release to a
number of interested parties. It may seem like overkill to some, but to
others it may be one of those features that clearly establishes Ant as the
tool to use.
The "core" and "optional" distinction does seem a bit arbitrary, but it is
useful in the following sense. Optional packages are just that, they do not
sepcifically relate to the core ability of Ant, build management and file
operations.
Tim O'Brien
tobrien@ieee.org
-----Original Message-----
From: Jason Hunter [mailto:jhunter@collab.net]
Sent: Monday, June 26, 2000 12:35 AM
To: ant-dev@jakarta.apache.org
Subject: Re: cvs commit: jakarta-ant/src/main/com/oreilly/servlet
MailMessage.java
Conor MacNeill wrote:
> > Whether a task should be optional or not should be dependent on the
> > merits of the task, not on what's easiest for integration.
>
> I find that a strange statement. Optional tasks are not assumed to be less
> meritorious, IMHO.
I think it's a terminology issue. There are three kinds of Ant tasks:
* Core tasks, provided with Ant and available to everyone
* Optional tasks, built if and only if certain libraries are on the
person's machine
* Project-specific tasks, things needed by a project but not generally
useful
I was stating that whether something was "core" or "project-specific"
should be decided on the merits of the task. "Optional" is a crazy
middle ground. If something is worth being core, then every effort
should be taken to have the necessary JARs bundled with Ant, because you
should be able to build your project using "core" tasks and expect it to
build on any system. If a task is project-specific, then it shouldn't
leave your project. Optional tasks should only be used as a very last
resort when something merits being core but there's no way to provide
the necessary supporting JAR. And even then I don't like the idea very
much. :-)
> For me, one of the important issues will become change management of this
> code. Will there be restrictions on making changes to this code in the ant
> source tree? If not, how will you stop them diverging? If changes are
> allowed, how will they be kept in sync with your source tree?
No restrictions on making changes, except a note at the top of the file
asking the maker of the change to coordinate with Servlets.com
development if possible. But really, we're talking about a single file
that does a specific well-defined task, so I'm not real worried about
divergence.
That is a reason to move it to org.apache.* though, so people won't be
confused if there ever is divergence.
> > I'm sure in
> > this case we can solve the integration issue, and I personally think
> > sending mail is something qualifying as a core task, as async
> > notification of an official build finishing is quite standard.
> >
>
> Sure, that is a nice feature and where it is required, people could
install
> the package to make it happen. There is an issue, however, in that
optional
> tasks is currently a compile time concept. Perhaps it might be good to
have
> optional tasks at runtime (i.e. their presence is ignored if there is no
> appropriate class available, without halting the build).
Optional tasks at runtime? Sounds like a minefield.
> If Intersourcing, as you called it, involves copying source code, then I
> would have reservations about it.
It's new territory, but generally it involves branching and shipping a
product based on the branch with cherrypick bug fixes. If you think
about it, that's how we release Tomcat -- create a release branch and
fine tune it while active development progresses on the trunk.
-jh-
Re: [RFE] Version switch
Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "PD" == Peter Donald <do...@mad.scientist.com> writes:
PD> Is it possible to add an extra command line switch to check the
PD> version of ant.
Ant has a version? 8^)
PD> It would also be good if the daily snaphots automatically
PD> included branch/version/date as part of version string. (via a -D
PD> parameter to compiling ????)
in connection with the tstamp task I guess. Another option (instead of
-D) would be keysubst or replace. I'll take a look at it.
Stefan
[RFE] Version switch
Posted by Peter Donald <do...@mad.scientist.com>.
Hi,
Is it possible to add an extra command line switch to check the version of
ant. It would also be good if the daily snaphots automatically included
branch/version/date as part of version string. (via a -D parameter to
compiling ????)
Cheers,
Pete
*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power." |
| -Abraham Lincoln |
*------------------------------------------------------*
Re: cvs commit:.... MailMessage.java
Posted by James Todd <jw...@pacbell.net>.
fair enough. i've only used the message generation and dispatch
portion of javaMail ... that said it is a very small part of javaMail ...
too bad it isn't made available as a standalone.
- james
Jason Hunter wrote:
> James Todd wrote:
> >
> > isn't it possible and most likely preferred that when there are implementation
> > choices (choices are good) to "shield" the actual mail message implementation
> > behind an adaptor or what not that is in turn intimately aware of ant? that way,
> > if javax.mail is available, as determined by the adapter at run time, an argueably
> > rich and solid extension is available but if that javax.mail is not available then
> > an alternative package is used.
>
> But we're talking about sending a mail message. Easy thing, standard
> way to do it, just follow the RFC. If we have an Apache-license way to
> do it, I think going through the work of creating an adapter
> infrastructure to allow the use of a non-freely redistributable library
> is overkill. It's not like choosing an XML parser where there are
> memory/speed/compatability tradeoffs.
>
> Now, we don't yet have an Apache-license way to do an attachment, but
> adding that to MailMessage would take about as much work as writing the
> adapter infrastructure, and once you were done you'd have an
> Apache-license freely-redist way of doing attachments. I view that as a
> Good Thing.
>
> If someone wants to implement an Apache-license javax.mail I wish them
> good luck. But if you're just wanting to send email, you'll spend more
> time checking into the legal implications of implementing a javax.*
> library than you'd spend making MailMessage do everything you want.
>
> -jh-
Re: cvs commit:.... MailMessage.java
Posted by Jason Hunter <jh...@collab.net>.
Tim O'Brien wrote:
>
> Are you saying that no Apache project should use javax.mail?
Of course not. (If I wanted to say that, I would have said it!)
I'm saying that if all you want to do is send email (JavaMail does far
more than this, including the much harder task of implementing IMAP)
then I'd prefer to use an Open Source library. I'm not an Open Source
zealot, but if there's an O.S. implementation that does what we need and
a non-O.S. version, we should use the O.S. version.
-jh-
RE: cvs commit:.... MailMessage.java
Posted by Tim O'Brien <tm...@mindspring.com>.
Are you saying that no Apache project should use javax.mail?
Tim O'Brien
-----Original Message-----
From: Jason Hunter [mailto:jhunter@collab.net]
Sent: Tuesday, June 27, 2000 2:55 PM
To: ant-dev@jakarta.apache.org
Subject: Re: cvs commit:.... MailMessage.java
James Todd wrote:
>
> isn't it possible and most likely preferred that when there are
implementation
> choices (choices are good) to "shield" the actual mail message
implementation
> behind an adaptor or what not that is in turn intimately aware of ant?
that way,
> if javax.mail is available, as determined by the adapter at run time, an
argueably
> rich and solid extension is available but if that javax.mail is not
available then
> an alternative package is used.
But we're talking about sending a mail message. Easy thing, standard
way to do it, just follow the RFC. If we have an Apache-license way to
do it, I think going through the work of creating an adapter
infrastructure to allow the use of a non-freely redistributable library
is overkill. It's not like choosing an XML parser where there are
memory/speed/compatability tradeoffs.
Now, we don't yet have an Apache-license way to do an attachment, but
adding that to MailMessage would take about as much work as writing the
adapter infrastructure, and once you were done you'd have an
Apache-license freely-redist way of doing attachments. I view that as a
Good Thing.
If someone wants to implement an Apache-license javax.mail I wish them
good luck. But if you're just wanting to send email, you'll spend more
time checking into the legal implications of implementing a javax.*
library than you'd spend making MailMessage do everything you want.
-jh-
Re: cvs commit:.... MailMessage.java
Posted by Jason Hunter <jh...@collab.net>.
James Todd wrote:
>
> isn't it possible and most likely preferred that when there are implementation
> choices (choices are good) to "shield" the actual mail message implementation
> behind an adaptor or what not that is in turn intimately aware of ant? that way,
> if javax.mail is available, as determined by the adapter at run time, an argueably
> rich and solid extension is available but if that javax.mail is not available then
> an alternative package is used.
But we're talking about sending a mail message. Easy thing, standard
way to do it, just follow the RFC. If we have an Apache-license way to
do it, I think going through the work of creating an adapter
infrastructure to allow the use of a non-freely redistributable library
is overkill. It's not like choosing an XML parser where there are
memory/speed/compatability tradeoffs.
Now, we don't yet have an Apache-license way to do an attachment, but
adding that to MailMessage would take about as much work as writing the
adapter infrastructure, and once you were done you'd have an
Apache-license freely-redist way of doing attachments. I view that as a
Good Thing.
If someone wants to implement an Apache-license javax.mail I wish them
good luck. But if you're just wanting to send email, you'll spend more
time checking into the legal implications of implementing a javax.*
library than you'd spend making MailMessage do everything you want.
-jh-
Re: cvs commit:.... MailMessage.java
Posted by James Todd <jw...@pacbell.net>.
isn't it possible and most likely preferred that when there are implementation
choices (choices are good) to "shield" the actual mail message implementation
behind an adaptor or what not that is in turn intimately aware of ant? that way,
if javax.mail is available, as determined by the adapter at run time, an argueably
rich and solid extension is available but if that javax.mail is not available then
an
alternative package is used.
hope this helps,
- james
Jason Hunter wrote:
> > I think optional packages are just as important as core packages, but one
> > thing I'd like to just insert in this discussion is that emailing a message
> > does not seem to me to be something that should be included as a core
> > taskdef. It makes more sense to include this as an optional taskdef because
> > it does not increase the runtime requirements ( See Duncan's spec doc at
> > http://jakarta.apache.org/cvsweb/index.cgi/jakarta-ant/spec/core.html?rev=1.
> > 1&content-type=text/vnd.viewcvs-markup ).
>
> So the question is, "Is it better to keep Ant's dependencies on external
> JAR files to a minimum, or is it better to provide a set of core tasks
> that can be relied upon to work the same across all build machines?" I
> choose the latter. If there's a small freely redistributable JAR that
> enables a task worthy of being core, I'd like to see it included. If
> it's large JAR or not freely redist, but the task is still important,
> then as a last resort we make it an optional task.
>
> > Further down that road, I don't think that the Ant project should contain
> > any code that deals specfically with sending email when there is an
> > established and widely embraced standard in JavaMail. We could reimplement
> > this under APL in the future,
>
> How annoying. This increases my belief that an open source project
> (such as Perl) has more right to be called an "open standard" than a JCP
> standard where there isn't a freely redistributable implementation (as
> appears to be the case with JavaMail) and where bugs can't be fixed
> without legal implications.
>
> -jh-
Re: cvs commit:.... MailMessage.java
Posted by Tom Cook <tc...@ardec.com.au>.
On Mon, 26 Jun 2000, Jason Hunter wrote:
> Tom Cook wrote:
> >
> > On Mon, 26 Jun 2000, Jason Hunter wrote:
> >
> > This thread is turning into a general discussion of core/optional tasks,
> > but I'm going to go back to the email thingy. I don't think tasks
> > involving email should be core tasks, since they make assumptions not only
> > about available libraries but also about available network infrastructure.
> > This is OK for some software, but Ant is a build tool, and when I think,
> > "build tool," I don't think, "Ah, yes, and I'll have to set that mail
> > server up as well..."
>
> I disagree with your point, but I'm glad to see debate centered on the
> merits of the task.
>
> The reason I disagree is that whether you want to use the task or not is
> your choice and something you write into your project's build.xml. In
> writing targets using the email send task you should consider its use,
> and which targets it would be appropriate for. Since sending email
> notification *is* something generally useful and something we don't want
> people to have to reinvent, I think it deserves core status.
>
> > Many of us, like I, are used to working in a fully networked environment.
> > Feel for people who still have a stand-alone Win98 box ( <flamewar> they
> > run Micro$oft! Feel for them!</flamewar> ;-)
>
> So don't use the task for targets that might be run on Win98. I picture
> the task used on a "build officialdist" kind of target.
Ant is a java tool; it's not really possible to say 'this target will/will
not be run on win98'. The whole idea of Java is that it can be run
anywhere.
In a way, however, I think you are right. When I have a good think about
it, email notification is probably not something which will be included in
a production build.xml. Imagine if ant-dev got a notification every time
someone built ant! It's really a task used in development situations,
where developers have control of the build.xml.
Just my $0.20 worth...
--
Tom Cook - Software Engineer
"The brain is a wonderful organ. It starts functioning the moment you get
up in the morning, and does not stop until you get into the office."
- Robert Frost
LISAcorp - www.lisa.com.au
--------------------------------------------------
38 Greenhill Rd. Level 3, 228 Pitt Street
Wayville, SA, 5034 Sydney, NSW, 2000
Phone: +61 8 8272 1555 Phone: +61 2 9283 0877
Fax: +61 8 8271 1199 Fax: +61 2 9283 0866
--------------------------------------------------
Re: cvs commit:.... MailMessage.java
Posted by Jason Hunter <jh...@collab.net>.
Tom Cook wrote:
>
> On Mon, 26 Jun 2000, Jason Hunter wrote:
>
> This thread is turning into a general discussion of core/optional tasks,
> but I'm going to go back to the email thingy. I don't think tasks
> involving email should be core tasks, since they make assumptions not only
> about available libraries but also about available network infrastructure.
> This is OK for some software, but Ant is a build tool, and when I think,
> "build tool," I don't think, "Ah, yes, and I'll have to set that mail
> server up as well..."
I disagree with your point, but I'm glad to see debate centered on the
merits of the task.
The reason I disagree is that whether you want to use the task or not is
your choice and something you write into your project's build.xml. In
writing targets using the email send task you should consider its use,
and which targets it would be appropriate for. Since sending email
notification *is* something generally useful and something we don't want
people to have to reinvent, I think it deserves core status.
> Many of us, like I, are used to working in a fully networked environment.
> Feel for people who still have a stand-alone Win98 box ( <flamewar> they
> run Micro$oft! Feel for them!</flamewar> ;-)
So don't use the task for targets that might be run on Win98. I picture
the task used on a "build officialdist" kind of target.
-jh-
Re: cvs commit:.... MailMessage.java
Posted by Tom Cook <tc...@ardec.com.au>.
On Mon, 26 Jun 2000, Jason Hunter wrote:
This thread is turning into a general discussion of core/optional tasks,
but I'm going to go back to the email thingy. I don't think tasks
involving email should be core tasks, since they make assumptions not only
about available libraries but also about available network infrastructure.
This is OK for some software, but Ant is a build tool, and when I think,
"build tool," I don't think, "Ah, yes, and I'll have to set that mail
server up as well..."
Many of us, like I, are used to working in a fully networked environment.
Feel for people who still have a stand-alone Win98 box ( <flamewar> they
run Micro$oft! Feel for them!</flamewar> ;-)
Cheerio
--
Tom Cook - Software Engineer
"The brain is a wonderful organ. It starts functioning the moment you get
up in the morning, and does not stop until you get into the office."
- Robert Frost
LISAcorp - www.lisa.com.au
--------------------------------------------------
38 Greenhill Rd. Level 3, 228 Pitt Street
Wayville, SA, 5034 Sydney, NSW, 2000
Phone: +61 8 8272 1555 Phone: +61 2 9283 0877
Fax: +61 8 8271 1199 Fax: +61 2 9283 0866
--------------------------------------------------
Re: cvs commit:.... MailMessage.java
Posted by Jason Hunter <jh...@acm.org>.
> I think optional packages are just as important as core packages, but one
> thing I'd like to just insert in this discussion is that emailing a message
> does not seem to me to be something that should be included as a core
> taskdef. It makes more sense to include this as an optional taskdef because
> it does not increase the runtime requirements ( See Duncan's spec doc at
> http://jakarta.apache.org/cvsweb/index.cgi/jakarta-ant/spec/core.html?rev=1.
> 1&content-type=text/vnd.viewcvs-markup ).
So the question is, "Is it better to keep Ant's dependencies on external
JAR files to a minimum, or is it better to provide a set of core tasks
that can be relied upon to work the same across all build machines?" I
choose the latter. If there's a small freely redistributable JAR that
enables a task worthy of being core, I'd like to see it included. If
it's large JAR or not freely redist, but the task is still important,
then as a last resort we make it an optional task.
> Further down that road, I don't think that the Ant project should contain
> any code that deals specfically with sending email when there is an
> established and widely embraced standard in JavaMail. We could reimplement
> this under APL in the future,
How annoying. This increases my belief that an open source project
(such as Perl) has more right to be called an "open standard" than a JCP
standard where there isn't a freely redistributable implementation (as
appears to be the case with JavaMail) and where bugs can't be fixed
without legal implications.
-jh-