You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Chris Adams <ch...@edatasource.com> on 2011/07/21 02:41:15 UTC
Include Additional Files in META-INF
Hi,
I apologize for all the questions, but I'm still trying to wrap my head
around how to do some tasks in buildr...
I have the following sub-project defined:
desc 'The js files which need to be included for punt-client and
punt-admin'
define 'eds-punt-js' do
meta_inf << file('taglib.tld')
package(:jar)
end
However, the file 'taglib.tld' is not being included in the META-INF folder
of the packaged jar file. I'm not sure what I'm doing wrong...
I've also tried:
desc 'The js files which need to be included for punt-client and
punt-admin'
define 'eds-punt-js' do
package(:jar).meta_inf << file('taglib.tld')
end
Any help is appreciated.
Thanks again.
- Chris
Re: Include Additional Files in META-INF
Posted by Allen Riddle <al...@gmail.com>.
Haha, nonsense. Buildr is great, but it certainly requires an amount of due
diligence.
On Thu, Jul 21, 2011 at 8:13 AM, Chris Adams <ch...@edatasource.com> wrote:
> Thanks, Allen.
>
> This was a very stupid mistake on my part. I actually had the meta_inf <<
> file('taglib.tld') in the wrong sub-project. Which obviously caused it not
> to be included in the correct jar file.
>
> Thanks for putting up with my ignorance and newbie mistakes.
>
> - Chris
>
> On Thu, Jul 21, 2011 at 1:10 AM, Allen Riddle <al...@gmail.com>
> wrote:
>
> > Chris,
> >
> > Your code looks sound. I tried this out locally (v1.4.5), and it worked.
> > Are you sure you've got the right path to your .tld file, and are you
> sure
> > it exists during the point of packaging? The "file" method returns a
> file
> > task using the expanded relative path, so I think the path to your .tld
> > file
> > will be at the root of your "edu-punt-js" folder, is that the correct
> path?
> >
> > On Wed, Jul 20, 2011 at 7:41 PM, Chris Adams <ch...@edatasource.com>
> > wrote:
> >
> > > Hi,
> > >
> > > I apologize for all the questions, but I'm still trying to wrap my head
> > > around how to do some tasks in buildr...
> > >
> > > I have the following sub-project defined:
> > > desc 'The js files which need to be included for punt-client and
> > > punt-admin'
> > > define 'eds-punt-js' do
> > > meta_inf << file('taglib.tld')
> > > package(:jar)
> > > end
> > >
> > > However, the file 'taglib.tld' is not being included in the META-INF
> > folder
> > > of the packaged jar file. I'm not sure what I'm doing wrong...
> > >
> > > I've also tried:
> > > desc 'The js files which need to be included for punt-client and
> > > punt-admin'
> > > define 'eds-punt-js' do
> > > package(:jar).meta_inf << file('taglib.tld')
> > > end
> > >
> > > Any help is appreciated.
> > >
> > > Thanks again.
> > >
> > > - Chris
> > >
> >
>
Re: Include Additional Files in META-INF
Posted by Chris Adams <ch...@edatasource.com>.
Thanks, Allen.
This was a very stupid mistake on my part. I actually had the meta_inf <<
file('taglib.tld') in the wrong sub-project. Which obviously caused it not
to be included in the correct jar file.
Thanks for putting up with my ignorance and newbie mistakes.
- Chris
On Thu, Jul 21, 2011 at 1:10 AM, Allen Riddle <al...@gmail.com> wrote:
> Chris,
>
> Your code looks sound. I tried this out locally (v1.4.5), and it worked.
> Are you sure you've got the right path to your .tld file, and are you sure
> it exists during the point of packaging? The "file" method returns a file
> task using the expanded relative path, so I think the path to your .tld
> file
> will be at the root of your "edu-punt-js" folder, is that the correct path?
>
> On Wed, Jul 20, 2011 at 7:41 PM, Chris Adams <ch...@edatasource.com>
> wrote:
>
> > Hi,
> >
> > I apologize for all the questions, but I'm still trying to wrap my head
> > around how to do some tasks in buildr...
> >
> > I have the following sub-project defined:
> > desc 'The js files which need to be included for punt-client and
> > punt-admin'
> > define 'eds-punt-js' do
> > meta_inf << file('taglib.tld')
> > package(:jar)
> > end
> >
> > However, the file 'taglib.tld' is not being included in the META-INF
> folder
> > of the packaged jar file. I'm not sure what I'm doing wrong...
> >
> > I've also tried:
> > desc 'The js files which need to be included for punt-client and
> > punt-admin'
> > define 'eds-punt-js' do
> > package(:jar).meta_inf << file('taglib.tld')
> > end
> >
> > Any help is appreciated.
> >
> > Thanks again.
> >
> > - Chris
> >
>
Re: Include Additional Files in META-INF
Posted by Allen Riddle <al...@gmail.com>.
Chris,
Your code looks sound. I tried this out locally (v1.4.5), and it worked.
Are you sure you've got the right path to your .tld file, and are you sure
it exists during the point of packaging? The "file" method returns a file
task using the expanded relative path, so I think the path to your .tld file
will be at the root of your "edu-punt-js" folder, is that the correct path?
On Wed, Jul 20, 2011 at 7:41 PM, Chris Adams <ch...@edatasource.com> wrote:
> Hi,
>
> I apologize for all the questions, but I'm still trying to wrap my head
> around how to do some tasks in buildr...
>
> I have the following sub-project defined:
> desc 'The js files which need to be included for punt-client and
> punt-admin'
> define 'eds-punt-js' do
> meta_inf << file('taglib.tld')
> package(:jar)
> end
>
> However, the file 'taglib.tld' is not being included in the META-INF folder
> of the packaged jar file. I'm not sure what I'm doing wrong...
>
> I've also tried:
> desc 'The js files which need to be included for punt-client and
> punt-admin'
> define 'eds-punt-js' do
> package(:jar).meta_inf << file('taglib.tld')
> end
>
> Any help is appreciated.
>
> Thanks again.
>
> - Chris
>