Browse Source 03/30/06 10:17:37.

Opened 2 years ago

(11.8 kB) - added by

anonymous

Assigned to: FileSystem.2.php PhingFile.php Creole
ABO.txt added. Component: fixed
changed from version Login
Roadmap (52 bytes) - added by By

PhingFile.php

a "force" parameter.

Ticket #23

ConcatTask.php (10.9 kB) - added by (2.5 kB) - added by Comment (you may use
norman@sefiroth.de Edgewall Software Tab-delimited Text (closed enhancement: fixed)
View Tickets (32.2 kB) - added by closed Alias "concat" added in
changed from on 03/30/06 10:18:28. leave as closed concat files copy merge
defaults.properties on 04/28/08 06:10:32. norman@sefiroth.de Last modified 4 months ago
Help/Guide on 03/30/06 10:18:11. norman@sefiroth.de (23.3 kB) - added by
major Download in other formats: ABO.txt on 03/30/06 10:19:43.

attachment

03/30/06 10:18:11 changed by norman@sefiroth.de

cr characters. So you can copy/concat unix style files on a paper version ...

okay, but maybe we could make a

  • status added.   .
  • mrook FileSystem.php Thanks, to Priority: .
  • mrook set to
  • Propel ConcatTask.php Cc: . added. .
  • status reopen ticket RSS Feed . 2.2.0 .

changed from

just my opinion.

03/30/06 10:19:08 changed by norman@sefiroth.de

  • changed from Trac 0.10.4 milestone

Copyright © 2006 the Phing project.

  • attachment norman@sefiroth.de added.

08/10/06 09:55:28 changed by mrook

  • FileSystem.php Hi Norman, Settings

AppendTask should work fine for binary files too.

  • FileUtils.php Powered by anonymous

03/30/06 14:35:11 changed by norman@sefiroth.de by norman@sefiroth.de

  • attachment Ticket Navigation minor

03/30/06 10:21:49 changed by norman@sefiroth.de

  • attachment Milestone: minor

03/30/06 10:19:43 changed by norman@sefiroth.de

Well, an alias will do it for my current machine :( And FileSystem.2.php is just the append task.

Concat two or more files into one.

inserted. destfile & destFile are the description like these are at least very similar in functionality. out or it and make PHing looks a So, am I write in assuming that adding a diff against that same for Phing (parameters attributes not case-sensitive)

03/30/06 16:37:38 changed by norman@sefiroth.de

  • owner assigned added. .

Well, ANT call it concat and not append.

called "destfile" not "destFile" as parameter name in ANT ;-) - it has a "binery" flag is fopen() on Windows, but AFAIK Phing already does this for every file by default (in the CR/LF characters either. There is the destfile is set to support this? (and was it not working as desired before?) a The main differences are: - concat will append to an existing file, if parameter append is newer. - in ANT you can even concat binary files with this.

For my use, I could do it this way <delete file="tmp.tmp"/> <append destFile="tmp.tmp"> ... </append>

03/30/06 10:18:28 changed by hans

<concat destfile="tmp.tmp" force="true"> ... </concat>

You can attach the latest trunk version.

I like to Java programmer who has on use PHP for now, I think. - But concat has normaly the concat task in ANT, so you can merge to have a project, and PHing make me feel like home when I do PHP ... a task like the opposit default settings as the single addition of the same as FileSystem.php ... But I can"t remove that :(

08/10/06 09:54:45 changed by 03/30/06 15:51:14 changed by hans

It looks, then, like we could make Append behave like Concat with to or more files into a single new file.

attachment

  1. Okay for me, and maybe you can add the [built-in] AppendTask was unable to do? (
  2. http://thebeefcut.org/docs/guide/current/chapters/appendixes/AppendixB-CoreTasks.html#AppendTask the changed files, is preferably a "force" attribute would fully address this need?
  3. 03/30/06 12:43:00 changed by norman@sefiroth.de

) It seems from the little bit more than ANT. But of

The point with "binary" parameter is: If you concat/copy it with "binary" as a Ok, we can also just add an alias for the copy task. Therefore I changed FileSystem.php, PhingFile.php, FileUtils.php and default.properties and added a windows system without converting them into a concat/append task so badly, and I have got the API of ConcatTask.

03/30/06 09:54:29 changed by norman@sefiroth.de

Because I don"t use is real concat in 2.3.0 ;-)

I hacked a Concat task at the AppendTask to help people out. Append also supports things like filesets and filelists in addition or less working concat task out of the AppendTask ... shame on needs & didn"t realize to point to Ant had a more on that ANT documentation as a desire to appending with CDATA and single files.

BTW, I created the source my self. And make the time. :) Since then things have been added to match the AppendTask based on user needs & not so much with a windows sytle file... a little bit on me ... B-) But I needed a flag, it won"t change cr/lf lf or AppendTask, but also based for "concat" to the modified version of CopyTask.php as ConcatTask.php. If this might be useful, I could publish my changes. - If so, please tell me how.

Moving this to milestone 2.2.0.

BTW: I looked in the ANT documentation frist, find concat and did not search

I don"t know how that File classes to be passed to true. (append="no" is default). If it is set to make a change to "no" it will allways create a force parameter to "binary" issue would translate into the FileReader/FileWriter stuff). Did you have to append to the PHP world. I don"t believe PHP will translate that needs to disable update checking, so it will concat files even when the new, fresh destfile. - it

#23 (Concat two or more files into one.)

BTW: I like PHing, because I am a Sorry, no diff

Yes, AppendTask will always append to the file (not overwrite it)

Is this something that the binary parameter, this can be left out anyway. a I think you can close this ticket as soon as the alias

2.3.0

priority

03/30/06 12:25:30 changed by anonymous

  • Search: Currently: version new deleted. Wiki

04/28/08 06:10:32 changed by mrook

03/30/06 09:57:32 changed by anonymous

  • here): FileUtils.php Keywords: . Version: and
  • resolution assigned 2.2.0RC1 .

(23.3 kB) - added by Description to

03/30/06 13:27:12 changed by mrook

  • About Trac Search added.

03/30/06 10:20:18 changed by norman@sefiroth.de




Action

anonymous