Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7458213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T13:25:09+00:00 2026-05-29T13:25:09+00:00

I’m triyng to create a generic phing script that will build a joomla plugin.

  • 0

I’m triyng to create a generic phing script that will build a joomla plugin.

Each joomla plugin must hava an .xml file that is used by joomla system to install the plugin. In this xml file we need to define what files and folders our zip archive has like this:

<files>
   <folder>folder1</folder>
   <filename plugin="nameofplugin">nameofplugin.php</filename>
   <filename>index.html</filename>
</files>

Now, because I’m lazy and I don’t want to do this thing always myself I want to have the phing script do this for me.

I have all the plugin files moved to a specific folder like this:

-pluginFolder

–folder1

–nameofplugin.php

–index.php

I see that I can use foreach like this:

<foreach param="dirname" absparam="absname" target="subtask">
        <fileset dir="${destination.dir}">
            <type type="file" />
            <depth max="0" min="0" />
        </fileset>
    </foreach>

<target name="subtask">
    <echo msg="<file>: ${dirname}" />
</target>

now here in the subtask I fail to figure out how to do merge all the files to a single variable so that I can then use replacetokens for example?

Any ideas about this? Should I build my own phing class that does this? Or is there an easy way to achieve this with what phing has to offer out of the box?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T13:25:09+00:00Added an answer on May 29, 2026 at 1:25 pm

    Ok, I managed to achieve what I wanted. I created a new phing task and made the replacement in there.

    You can see how it works on the base of this joomla plugin:
    https://github.com/compojoom/CUpdater

    The build.xml file is here:

    https://github.com/compojoom/CUpdater/blob/master/builds/plugin.xml

    and the task is here:

    https://github.com/compojoom/CUpdater/blob/master/builds/phingext/listjpackagefilestask.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I'm trying to create an if statement in PHP that prevents a single post
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
We're building an app, our first using Rails 3, and we're having to build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.