I’ve had to do some work for a company recently.

It involved me creating Joomla components and those annoying XML files, listing all the files and folders to install.

If you want a quick command to generate the xml, you can cd to the directory then run

find * -type f -exec  echo ‘<filename>’{}’</filename>’ \;

find * -type d -exec  echo ‘<folder>’{}’</folder>’ \;

Then you can copy the output from the terminal and paste between the files tags.

<files folder=”components/com_test”>
<filename>controller.php</filename>
<filename>css/test.css</filename>
<filename>views/test/tmpl/index.html</filename>
<filename>test.php</filename>
<folder>css</folder>
<folder>images</folder>
<folder>install_sql</folder>
<folder>models</folder>
<folder>player</folder>
<folder>views</folder>
<folder>views/user</folder>
<folder>views/user/tmpl</folder>
<folder>views/test</folder>
<folder>views/test/tmpl</folder>
</files>

I repeated this for the administrator/components/com_test and components/com_test folders

Share/Save/Bookmark