Actually 'echo' is not equivalent to the touch command because it will put a
"ECHO is ON."
into the file :-) But it will work, since the file content is irrelevant.
On 12/04/2011 20:49, Dimitris Andreadis wrote:
echo> foo.war.dodeploy looks like the simplest option.
Strictly speaking, the 'touch equivalent' is
echo>> for.war.dodeploy
On 12/04/2011 20:39, ssilvert(a)redhat.com wrote:
> Quoting Brian Stansberry<brian.stansberry(a)redhat.com>:
>
>> Thanks; this discussion got me motivated to fire up my old Winx XP
>> laptop and figure out how to do 'touch'. I wanted to add
>> Windows-variants to that README.
>>
>> COPY /B foo.war.dodeploy+,, doesn't seem to work, but either of these did:
>>
>> type nul>> foo.war.dodeploy
>> copy nul>> foo.war.dodeploy
>
> I'm on Windows 7. To create a new dodeploy I use:
>
> echo> foo.war.dodeploy
>
> The type command above seems to work OK for touch, but copy will
> modify the file, which you don't want.
>
>>
>> If anyone has a Win 7 machine and can confirm either of those still
>> work, that would be great.
>>
>> On 4/12/11 12:01 PM, Dimitris Andreadis wrote:
>>> There is so standard 'touch' on windows. You have to use tricks
>>> from the command line like:
>>> COPY /B myfile+,,
>>>
>>> Normal windows users would probably right-click to create a new
>>> text file and then click to
>>> manually rename it. Or open in an editor an existing one and save
>>> it in order to achieve the
>>> 'touch' effect.
>>>
>>> It's a bit of a pain for them.
>>>
>>> On 12/04/2011 19:41, Jim Tyrrell wrote:
>>>>> If you have some ideas how we can make it more clear thats great.
>>>>> One thing I realize is that Windows folks have no idea what
>>>>> touch is so I know we need to improve it at least there.
>>>>
>>>> Does touch even exist on windows? Been a long time since I used it.
>>>
>>> _______________________________________________
>>> jboss-as7-dev mailing list
>>> jboss-as7-dev(a)lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>>
>>
>> --
>> Brian Stansberry
>> Principal Software Engineer
>> JBoss by Red Hat
>> _______________________________________________
>> jboss-as7-dev mailing list
>> jboss-as7-dev(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>>
>
>
>
>
>
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dimitris Andreadis
Software Engineering Manager
JBoss Application Server
by Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx